From 659bff41eef235e4adb7fce892a768c52c5f1ea5 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 12 九月 2024 11:25:47 +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