From ca47b1c4f5f624c396fc4c7f86db0a35359f93ee Mon Sep 17 00:00:00 2001 From: pixelmaxQM Date: Sat, 15 Mar 2025 14:05:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E7=99=BB=E5=BD=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=8B=E8=BF=9B=E5=85=A5=E7=99=BD=E5=90=8D=E5=8D=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=BA=E5=88=B6=E6=8B=89=E5=8F=96=E5=88=B0?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E8=A7=92=E8=89=B2=E7=9A=84=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/permission.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/permission.js b/web/src/permission.js index 33cd6e1e..509c72fe 100644 --- a/web/src/permission.js +++ b/web/src/permission.js @@ -13,7 +13,7 @@ Nprogress.configure({ }) // 白名单路由 -const WHITE_LIST = ['Login', 'Init', 'ScanUpload'] +const WHITE_LIST = ['Login', 'Init'] // 处理路由加载 const setupRouter = async (userStore) => { @@ -93,7 +93,7 @@ router.beforeEach(async (to, from) => { ) { await setupRouter(userStore) } - return true + return { name: userStore.userInfo.authority.defaultRouter } } // 需要登录的路由处理