This commit is contained in:
2026-02-26 16:55:25 +08:00
parent e741d50761
commit dfdf2400c1
17 changed files with 287 additions and 55 deletions

View File

@@ -109,12 +109,13 @@ service.interceptors.response.use(
// location.reload() // 为了重新实例化vue-router对象 避免bug
// })
// })
// showToast({
// message: 'Please log in and try again.',
// duration: 5000
// })
// router.push('/login')
// useGenerateStore().clearGenerateData()
ElMessage({
type: 'error',
message: 'Please log in and try again.',
duration: 5000
})
router.push('/login')
useUserInfoStore().logOut(false)
return Promise.reject(false)
}
error.config && removePending(error.config)