You need to sign in or sign up before continuing.
Commit 26ed68f6 by wangyalan-git

修改token,login页面布局

parent 6bb753ce
......@@ -46,16 +46,11 @@ service.interceptors.response.use(
})
// 401:未登录;
if (res.code === 401) {
MessageBox.confirm('你已被登出,可以取消继续留在该页面,或者重新登录', '确定登出', {
confirmButtonText: '重新登录',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
store.dispatch('FedLogOut').then(() => {
console.log('重新登录',router)
router.replace({
name: 'login'
})
store.dispatch('FedLogOut').then(() => {
console.log('重新登录',router)
router.replace({
name: 'login',
query: { redirect: router.currentRoute.fullPath } // 登录后再跳回此页面时要做的配置
})
})
}
......
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