congzc 1 年之前
父節點
當前提交
40a18dd7b1
共有 2 個檔案被更改,包括 12 行新增9 行删除
  1. +6
    -3
      src/permission.ts
  2. +6
    -6
      src/views/myAccount/index.vue

+ 6
- 3
src/permission.ts 查看文件

@@ -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();
} }


+ 6
- 6
src/views/myAccount/index.vue 查看文件

@@ -522,16 +522,16 @@ function routerTo(url) {
position: relative; position: relative;
height: 200px; height: 200px;
overflow: hidden; overflow: hidden;
&:hover {
.mask {
display: block;
}
}
// &:hover {
// .mask {
// display: block;
// }
// }
.mask { .mask {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
display: none;
// display: none;
width: 100%; width: 100%;
height: 100%; height: 100%;
line-height: 780px; line-height: 780px;


Loading…
取消
儲存