【更新】登录后跳转路由与存储字典切换顺序

pull/174/MERGE
小诺 2023-11-01 00:22:12 +08:00 committed by 俞宝山
parent 8928183a3f
commit f44224ce93
1 changed files with 3 additions and 3 deletions

View File

@ -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
})
}