File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ api.interceptors.request.use(async (config) => {
1919} ) ;
2020
2121api . interceptors . response . use ( ( response ) => response ,
22- ( pError ) => {
23- if ( pError . response . status === 401 ) {
24- console . log ( pError . response . status ) ;
22+ ( error ) => {
23+ if ( error . response . status === 401 ) {
2524 window . location = '/logout' ;
2625 }
2726
28- return Promise . reject ( pError ) ;
27+ return Promise . reject ( error ) ;
2928 } ) ;
3029
3130export default api ;
Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ export default {
154154 methods: {
155155 async verifyIsLoggedIn () {
156156 const token = await Storage .get ({ key: ' token' });
157- console .log (token);
158157 this .isLoggedIn = !! token .value ;
159158 },
160159 async mountMenu () {
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ export default {
1313 async getUserType ( ) {
1414 const user = await Storage . get ( { key : 'user' } ) ;
1515
16- console . log ( user ) ;
17-
1816 if ( ! user . value ) return 0 ;
1917
2018 const { userType } = JSON . parse ( user . value ) ;
You can’t perform that action at this time.
0 commit comments