|
@@ -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:个人
|