|
@@ -54,16 +54,16 @@ _axios.interceptors.request.use(
|
|
|
_axios.interceptors.response.use(
|
|
|
function(response) {
|
|
|
// Do something with response data
|
|
|
- if(response.data.code == 403) {
|
|
|
- window.localStorage.removeItem('userInfo') // 删除用户信息
|
|
|
- window.localStorage.removeItem('Authorization') // 删除用户信息
|
|
|
- // android ios 注册方法
|
|
|
- if(browser().android) {
|
|
|
- DAYA.postMessage(JSON.stringify({api: 'login'}))
|
|
|
- } else if(browser().iPhone) {
|
|
|
- window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api: 'login'}))
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(response.data.code == 403) {
|
|
|
+ // window.localStorage.removeItem('userInfo') // 删除用户信息
|
|
|
+ // window.localStorage.removeItem('Authorization') // 删除用户信息
|
|
|
+ // // android ios 注册方法
|
|
|
+ // if(browser().android) {
|
|
|
+ // DAYA.postMessage(JSON.stringify({api: 'login'}))
|
|
|
+ // } else if(browser().iPhone) {
|
|
|
+ // window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api: 'login'}))
|
|
|
+ // }
|
|
|
+ // }
|
|
|
return response;
|
|
|
},
|
|
|
function(error) {
|