From d166e3e2d6bfac6b399aa16892f38bf2e3653a53 Mon Sep 17 00:00:00 2001 From: zk Date: Thu, 29 Aug 2024 15:18:41 +0800 Subject: [PATCH] update --- src/enum/pageEnum.ts | 4 ++-- src/router/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/enum/pageEnum.ts b/src/enum/pageEnum.ts index 57e08d5..afaad1b 100644 --- a/src/enum/pageEnum.ts +++ b/src/enum/pageEnum.ts @@ -19,7 +19,7 @@ export function getBaseLogin() { export function toLoginByNowPath(nowPath: string) { const xianPath = ['/home', '/secondScreen', '/']; - const yinchuanPath = ['/yinChuanHome']; + const yinchuanPath = ['/yinChuanHome', '/yinChuanTest']; if (xianPath.includes(nowPath)) { return PageEnum.BASE_LOGIN; } else if (yinchuanPath.includes(nowPath)) { @@ -32,7 +32,7 @@ export function toHomeByLogoutPath(nowPath: string) { //西安的页面路径 const xianPath = ['/home', '/secondScreen', '/']; //银川的页面路径 - const yinchuanPath = ['/yinChuanHome']; + const yinchuanPath = ['/yinChuanHome', '/yinChuanTest']; if (xianPath.includes(nowPath)) { return PageEnum.BASE_HOME; } else if (yinchuanPath.includes(nowPath)) { diff --git a/src/router/index.ts b/src/router/index.ts index c2ced1a..f0b6991 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -71,7 +71,7 @@ const router: Router = createRouter({ routes: [...routes], }); const xian = ['/home', '/secondScreen', '/transfer']; -const yinchuan = ['/yinChuanHome', '/transfer']; +const yinchuan = ['/yinChuanHome', '/yinChuanTest', '/transfer']; router.beforeEach((to, from, next) => { if (to.path !== '/login' && to.path !== '/screenLogin') {