@@ -19,6 +19,7 @@ router.beforeEach(async (to, from, next) => { | |||||
// 重置密码时可以去往login页面 | // 重置密码时可以去往login页面 | ||||
if ((to.params.type as string) == "4") { | if ((to.params.type as string) == "4") { | ||||
next(); | next(); | ||||
return | |||||
} | } | ||||
if (to.query.resetPwd) { | if (to.query.resetPwd) { | ||||
next(); | next(); | ||||
@@ -997,7 +997,8 @@ onMounted(() => { | |||||
getInfo(); | getInfo(); | ||||
// 重置密码 | // 重置密码 | ||||
if (router.currentRoute.value.params.type) { | if (router.currentRoute.value.params.type) { | ||||
isLogin.value = Number(router.currentRoute.value.params.type); | |||||
// isLogin.value = Number(router.currentRoute.value.params.type); | |||||
isLogin.value = 4; | |||||
} | } | ||||
//有resetPwd则说明是重置密码邮件来的 | //有resetPwd则说明是重置密码邮件来的 | ||||
if (route.query.resetPwd) { | if (route.query.resetPwd) { | ||||
@@ -542,8 +542,9 @@ function routerTo(url) { | |||||
z-index: 9; | z-index: 9; | ||||
.title { | .title { | ||||
position: absolute; | position: absolute; | ||||
top: 20%; | |||||
left: 38%; | |||||
top: 50%; | |||||
left: 50%; | |||||
transform: translate(-50%, -50%); | |||||
font-size: 30px; | font-size: 30px; | ||||
text-align: center; | text-align: center; | ||||
line-height: 80px; | line-height: 80px; | ||||