congzc hace 2 años
padre
commit
94639cd4f3
Se han modificado 3 ficheros con 6 adiciones y 3 borrados
  1. +1
    -0
      src/permission.ts
  2. +2
    -1
      src/views/login/index.vue
  3. +3
    -2
      src/views/myAccount/index.vue

+ 1
- 0
src/permission.ts Ver fichero

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


+ 2
- 1
src/views/login/index.vue Ver fichero

@@ -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) {


+ 3
- 2
src/views/myAccount/index.vue Ver fichero

@@ -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;


Cargando…
Cancelar
Guardar