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

This commit is contained in:
小诺
2023-11-01 00:22:12 +08:00
committed by 俞宝山
parent 8928183a3f
commit f44224ce93

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