Skip to content

Commit ca47b1c

Browse files
committedMar 15, 2025·
feat: 在登录状态下进入白名单页面强制拉取到当前角色的默认页面
1 parent ab75bc7 commit ca47b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎web/src/permission.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Nprogress.configure({
1313
})
1414

1515
// 白名单路由
16-
const WHITE_LIST = ['Login', 'Init', 'ScanUpload']
16+
const WHITE_LIST = ['Login', 'Init']
1717

1818
// 处理路由加载
1919
const setupRouter = async (userStore) => {
@@ -93,7 +93,7 @@ router.beforeEach(async (to, from) => {
9393
) {
9494
await setupRouter(userStore)
9595
}
96-
return true
96+
return { name: userStore.userInfo.authority.defaultRouter }
9797
}
9898

9999
// 需要登录的路由处理

0 commit comments

Comments
 (0)
Please sign in to comment.