提交 8417427e authored 作者: lihuihui's avatar lihuihui

修改登录提示问题

上级 97f8e8c6
...@@ -11,10 +11,8 @@ export default class Before { ...@@ -11,10 +11,8 @@ export default class Before {
if (to.name === 'studentHelp' || to.name === 'teacherHelp') { if (to.name === 'studentHelp' || to.name === 'teacherHelp') {
next() next()
} else if (to.name !== 'login-normal' && to.name !== 'login-code' && to.name !== 'login-forget') { // 所有登录页 不进行登录校验 } else if (to.name !== 'login-normal' && to.name !== 'login-code' && to.name !== 'login-forget') { // 所有登录页 不进行登录校验
const isLogin = this.isLogin() let isLogin
if (to.redirectedFrom && !isLogin) { to.redirectedFrom && !isLogin ? next({ path: '/login/index?rd=' + encodeURIComponent(to.fullPath) }) : isLogin = await this.isLogin()
next({ path: '/login/index?rd=' + encodeURIComponent(to.fullPath) })
}
if (isLogin) { if (isLogin) {
next() next()
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论