|
@@ -17,15 +17,18 @@ router.beforeEach(async (to, from, next) => { |
|
|
// 已登录 |
|
|
// 已登录 |
|
|
if (AccessToken) { |
|
|
if (AccessToken) { |
|
|
// 重置密码时可以去往login页面 |
|
|
// 重置密码时可以去往login页面 |
|
|
if ((to.params.type as string) == "4") { |
|
|
|
|
|
|
|
|
// if ((to.params.type as string) == "4") { |
|
|
|
|
|
// next(); |
|
|
|
|
|
// } |
|
|
|
|
|
if (to.params.type ) { |
|
|
next(); |
|
|
next(); |
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
// 邮件重置密码 忘记密码 |
|
|
if (to.query.resetPwd) { |
|
|
if (to.query.resetPwd) { |
|
|
next(); |
|
|
next(); |
|
|
} |
|
|
} |
|
|
if (to.path === "/login") { |
|
|
if (to.path === "/login") { |
|
|
// next({ path: "/createVideo" }); |
|
|
|
|
|
|
|
|
next({ path: "/createVideo" }); |
|
|
} else { |
|
|
} else { |
|
|
next(); |
|
|
next(); |
|
|
} |
|
|
} |
|
|