feat: 在登录状态下进入白名单页面强制拉取到当前角色的默认页面
This commit is contained in:
parent
ab75bc7f59
commit
ca47b1c4f5
|
|
@ -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 }
|
||||
}
|
||||
|
||||
// 需要登录的路由处理
|
||||
|
|
|
|||
Loading…
Reference in New Issue