|
|
@ -91,14 +91,15 @@ router.beforeEach(async (to, from, next) => { |
|
|
|
replace: true |
|
|
|
}) |
|
|
|
}).catch(()=>{ |
|
|
|
next({ |
|
|
|
path:'/login', |
|
|
|
query:{ |
|
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
|
isSinglePage:to.query.isSinglePage |
|
|
|
}, |
|
|
|
replace: true |
|
|
|
}) |
|
|
|
next() |
|
|
|
// next({
|
|
|
|
// path:'/login',
|
|
|
|
// query:{
|
|
|
|
// isAutoLogin:to.query.isAutoLogin,
|
|
|
|
// isSinglePage:to.query.isSinglePage
|
|
|
|
// },
|
|
|
|
// replace: true
|
|
|
|
// })
|
|
|
|
// next(`/login?loginName=${to.query.loginName}&isAutoLogin=${to.query.isAutoLogin}`)
|
|
|
|
// next(`/login`)
|
|
|
|
Message.error('获取用户信息失败,请重试!') |
|
|
|