调整路由

This commit is contained in:
X1627315083
2024-10-21 11:43:26 +08:00
parent afbfef4fd1
commit fe3b89d615

View File

@@ -362,6 +362,7 @@ router.beforeEach((to:any, from, next) => {
next();
return
}
if(systemUser.value == 0){//游客用户只能进入这两个页面
let sSystemUser = false
for (let index = 0; index < isSystemUserRouteList.length; index++) {
@@ -383,6 +384,9 @@ router.beforeEach((to:any, from, next) => {
return next({ name: '/home' });//机房用户
}
} else {
if(to.path == '/upgrade'){
return next({ path: '/' });//机房用户
}
if (routeList.indexOf(to.path) > -1 ) {//指定也买你必须指定用户可以进入
if(userIdList.indexOf(userInfo.userId) > -1){
}else{