mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
【更新】登录后跳转路由与存储字典切换顺序
This commit is contained in:
@@ -39,11 +39,11 @@ export const afterLogin = async (loginToken) => {
|
||||
indexMenu = menu[0].children[0].path
|
||||
}
|
||||
}
|
||||
await router.replace({
|
||||
path: indexMenu
|
||||
})
|
||||
dictApi.dictTree().then((data) => {
|
||||
// 设置字典到store中
|
||||
tool.data.set('DICT_TYPE_TREE_DATA', data)
|
||||
})
|
||||
await router.replace({
|
||||
path: indexMenu
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user