fix store

This commit is contained in:
jxxghp
2024-06-20 07:08:47 +08:00
parent aa2fe9740c
commit a815e07cdd
4 changed files with 9 additions and 28 deletions

View File

@@ -27,8 +27,7 @@ api.interceptors.response.use(
return Promise.reject(new Error(error))
} else if (error.response.status === 403) {
// 清除登录状态信息
store.dispatch('auth/clearToken')
store.dispatch('auth/logout')
// token验证失败跳转到登录页面
router.push('/login')
}