浏览代码

老师登录地址

Xiao_123 1 月之前
父节点
当前提交
198d126bc6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/permission.js

+ 1 - 1
src/permission.js

@@ -33,7 +33,7 @@ router.beforeEach(async (to, from, next) => {
   const isTeacherRoute = to.path.includes(TEACHER_PATH)
   const schoolInfo = localStorage.getItem('schoolInfo')
   if (isTeacherRoute && !schoolInfo) {
-    next(`/login?redirect=${to.fullPath}`)
+    next(`/flameLogin?redirect=${to.fullPath}`)
   }
   
   const tokenIndex = isEnterprise ? 1 : 2 // 1:企业 2:个人