|  |  | 
 |  |  |                         message.showToast('系统异常') | 
 |  |  |                      } else if (res.data.code === '401' || res.data && res.data.code && | 
 |  |  |                         res.data.code.startsWith('401')) { | 
 |  |  |                         console.log('resp', res) | 
 |  |  |                         message.showToast('登录信息失效') | 
 |  |  |                         storage.removeItem('token') | 
 |  |  |                         reject({ | 
 |  |  | 
 |  |  |                         uni.reLaunch({ | 
 |  |  |                            url: '/pages/login/supplier-login' | 
 |  |  |                         }) | 
 |  |  |                         // #endif | 
 |  |  |  | 
 |  |  |                      } else { | 
 |  |  |                         if (res.data.data && typeof res.data.data === 'string') { | 
 |  |  | 
 |  |  |                   // store.dispatch('/clearUserInfo') | 
 |  |  |                   // commit('updat') | 
 |  |  |                   // store.commit('updateLogin', false) | 
 |  |  |                   console.log('401',res) | 
 |  |  |                   message.showToast('登录信息失效') | 
 |  |  |                   storage.removeItem('token') | 
 |  |  |                   reject({ | 
 |  |  |                      data: null, | 
 |  |  |                      code: 401, | 
 |  |  |                      msg: 'Unauthorized' | 
 |  |  |                   }) | 
 |  |  |                   // #ifdef H5 | 
 |  |  |                   // #ifdef PUB_CUSTOMER | 
 |  |  |                   uni.reLaunch({ | 
 |  |  |                      url: '/views/pc/login.vue' | 
 |  |  |                      url: '/pages/user/supplier-user' | 
 |  |  |                   }) | 
 |  |  |                   // #endif | 
 |  |  |                   // #ifndef H5 | 
 |  |  |                   // #ifndef PUB_CUSTOMER | 
 |  |  |                   uni.reLaunch({ | 
 |  |  |                      url: '/' | 
 |  |  |                      url: '/pages/login/supplier-login' | 
 |  |  |                   }) | 
 |  |  |                   // #endif | 
 |  |  |  |