From 94639cd4f38d69b2be8534b77ee160fe4c040aa1 Mon Sep 17 00:00:00 2001 From: congzc Date: Tue, 20 Jun 2023 18:39:28 +0800 Subject: [PATCH] 4 --- src/permission.ts | 1 + src/views/login/index.vue | 3 ++- src/views/myAccount/index.vue | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/permission.ts b/src/permission.ts index d2b782d..e1b011b 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -19,6 +19,7 @@ router.beforeEach(async (to, from, next) => { // 重置密码时可以去往login页面 if ((to.params.type as string) == "4") { next(); + return } if (to.query.resetPwd) { next(); diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 7fb2fba..8991b73 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -997,7 +997,8 @@ onMounted(() => { getInfo(); // 重置密码 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则说明是重置密码邮件来的 if (route.query.resetPwd) { diff --git a/src/views/myAccount/index.vue b/src/views/myAccount/index.vue index b021e7f..7dc5c81 100644 --- a/src/views/myAccount/index.vue +++ b/src/views/myAccount/index.vue @@ -542,8 +542,9 @@ function routerTo(url) { z-index: 9; .title { position: absolute; - top: 20%; - left: 38%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); font-size: 30px; text-align: center; line-height: 80px;