提交 ae7d25f1 authored 作者: lihuihui's avatar lihuihui

修改登录弹窗

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