mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-16 16:07:34 +08:00
fix store
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user