From 61437c9587f121cab2c621680143d65e1b05ef8e Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 08 十月 2024 15:53:43 +0800 Subject: [PATCH] 领用界面 显示患者编号二维码 --- src/permission.ts | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/permission.ts b/src/permission.ts index 7f20ed4..a4ea69d 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -53,7 +53,9 @@ '/auth-redirect', '/bind', '/register', - '/oauthLogin/gitee' + '/oauthLogin/gitee', + '/calling-screen-big', + '/calling-screen-room' ] // 璺敱鍔犺浇鍓� @@ -61,14 +63,15 @@ console.info("router.beforeEach to: " + to.fullPath + " from: " + from.fullPath) start() loadStart() + + if (whiteList.indexOf(to.path) !== -1) { + next() + return + } + if (!getAccessToken()) { - if (whiteList.indexOf(to.path) !== -1) { - next() - return - } else { - next(`/login?redirect=${to.fullPath}`) // 鍚﹀垯鍏ㄩ儴閲嶅畾鍚戝埌鐧诲綍椤� - return - } + next(`/login?redirect=${to.fullPath}`) // 鍚﹀垯鍏ㄩ儴閲嶅畾鍚戝埌鐧诲綍椤� + return } if (to.path === '/login') { -- Gitblit v1.9.3