From fe3b89d61536da9e8d3cfa9962366b24372617bf Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 21 Oct 2024 11:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 77a88baa..4bccbf98 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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{