update
This commit is contained in:
@@ -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
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user