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