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