Commit 595636f4 authored by lishangbu's avatar lishangbu

Improving performance.redirect to login page when deleting token

parent 8a15f1da
......@@ -57,6 +57,13 @@ axios.interceptors.response.use(res => {
})
return Promise.reject(new Error(message))
}
if (status === 401) {
store.dispatch('FedLogOut').then(() => {
router.push({
path: '/login'
})
})
}
if (status !== 200) {
Message({
message: message,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment