Commit fe96effb authored by 冷冷's avatar 冷冷

Merge remote-tracking branch 'origin/master'

parents 7da05067 c1747a02
......@@ -44,6 +44,11 @@ axios.interceptors.response.use(data => {
message: errorCode[code] || errorCode['default'],
type: 'error'
})
if(parseInt(code) === 401 || parseInt(code) === 403){
store.dispatch('FedLogOut').then(() => {
router.push({ path: '/login' });
})
}
return Promise.reject(new Error(error))
})
......
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