This commit is contained in:
zk
2024-08-29 15:18:41 +08:00
parent 7693850d47
commit d166e3e2d6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)) {
+1 -1
View File
@@ -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') {