...
|
...
|
@@ -95,6 +95,7 @@ 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)
|
98
|
99
|
if (!store.state.userInfo.isThirdLogin) {
|
99
|
100
|
uni.reLaunch({
|
100
|
101
|
url: "/publicLoginSubPage/public/login",
|
...
|
...
|
@@ -102,7 +103,7 @@ uni.$u.http.interceptors.response.use( |
102
|
103
|
// 清空登录信息
|
103
|
104
|
store.commit("emptyUserInfo");
|
104
|
105
|
show = false;
|
105
|
|
- } else {
|
|
106
|
+ } else if (store.state.userInfo.isThirdLogin) {
|
106
|
107
|
uni.switchTab({
|
107
|
108
|
url: "../pages/personal/personal",
|
108
|
109
|
});
|
...
|
...
|
@@ -111,6 +112,7 @@ uni.$u.http.interceptors.response.use( |
111
|
112
|
} else {
|
112
|
113
|
errorData = message || "";
|
113
|
114
|
}
|
|
115
|
+ console.log(errorData)
|
114
|
116
|
if (show) uni.$u.toast(errorData);
|
115
|
117
|
return Promise.reject(response);
|
116
|
118
|
}
|
...
|
...
|
|