|
|
@@ -98,11 +98,13 @@ const handleNetworkError = (response: AxiosResponse, silent?: boolean) => {
|
|
|
|
|
|
const userStore = useUserStoreWithOut()
|
|
|
|
|
|
+ console.log('response', response)
|
|
|
+
|
|
|
// 先处理401登录失效问题
|
|
|
if (status === 401) {
|
|
|
showToast('您的登录状态已失效,请重新登录')
|
|
|
abortAllRequests()
|
|
|
- useUserStoreWithOut().LogOut()
|
|
|
+
|
|
|
// 🔁 跳转到登录页
|
|
|
setTimeout(() => {
|
|
|
router.replace({
|
|
|
@@ -111,6 +113,7 @@ const handleNetworkError = (response: AxiosResponse, silent?: boolean) => {
|
|
|
pushRecordId: userStore.pushRecordId,
|
|
|
},
|
|
|
})
|
|
|
+ useUserStoreWithOut().LogOut()
|
|
|
}, 1500)
|
|
|
}
|
|
|
|