From 40a18dd7b13b2ca889404eae34ff307e7a52e079 Mon Sep 17 00:00:00 2001 From: congzc Date: Tue, 20 Jun 2023 18:52:09 +0800 Subject: [PATCH] 6 --- src/permission.ts | 9 ++++++--- src/views/myAccount/index.vue | 12 ++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/permission.ts b/src/permission.ts index e3c213f..c5b163a 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -17,15 +17,18 @@ router.beforeEach(async (to, from, next) => { // 已登录 if (AccessToken) { // 重置密码时可以去往login页面 - if ((to.params.type as string) == "4") { + // if ((to.params.type as string) == "4") { + // next(); + // } + if (to.params.type ) { next(); - return } + // 邮件重置密码 忘记密码 if (to.query.resetPwd) { next(); } if (to.path === "/login") { - // next({ path: "/createVideo" }); + next({ path: "/createVideo" }); } else { next(); } diff --git a/src/views/myAccount/index.vue b/src/views/myAccount/index.vue index 7dc5c81..0529152 100644 --- a/src/views/myAccount/index.vue +++ b/src/views/myAccount/index.vue @@ -522,16 +522,16 @@ function routerTo(url) { position: relative; height: 200px; overflow: hidden; - &:hover { - .mask { - display: block; - } - } + // &:hover { + // .mask { + // display: block; + // } + // } .mask { position: absolute; top: 0; left: 0; - display: none; + // display: none; width: 100%; height: 100%; line-height: 780px;