Showing
1 changed file
with
1 additions
and
3 deletions
| ... | ... | @@ -95,7 +95,6 @@ uni.$u.http.interceptors.response.use( |
| 95 | 95 | } else if (message == "request:fail timeout") { |
| 96 | 96 | errorData = "请求超时:请检查网络"; |
| 97 | 97 | } else if (response.data.status == 401) { |
| 98 | - console.log(store.state.userInfo.isThirdLogin) | |
| 99 | 98 | if (!store.state.userInfo.isThirdLogin) { |
| 100 | 99 | uni.reLaunch({ |
| 101 | 100 | url: "/publicLoginSubPage/public/login", |
| ... | ... | @@ -103,7 +102,7 @@ uni.$u.http.interceptors.response.use( |
| 103 | 102 | // 清空登录信息 |
| 104 | 103 | store.commit("emptyUserInfo"); |
| 105 | 104 | show = false; |
| 106 | - } else if (store.state.userInfo.isThirdLogin) { | |
| 105 | + } else { | |
| 107 | 106 | uni.switchTab({ |
| 108 | 107 | url: "../pages/personal/personal", |
| 109 | 108 | }); |
| ... | ... | @@ -112,7 +111,6 @@ uni.$u.http.interceptors.response.use( |
| 112 | 111 | } else { |
| 113 | 112 | errorData = message || ""; |
| 114 | 113 | } |
| 115 | - console.log(errorData) | |
| 116 | 114 | if (show) uni.$u.toast(errorData); |
| 117 | 115 | return Promise.reject(response); |
| 118 | 116 | } | ... | ... |