mirror of https://gitee.com/xiaonuobase/snowy
【更新】登录后跳转路由与存储字典切换顺序
parent
8928183a3f
commit
f44224ce93
|
@ -39,11 +39,11 @@ export const afterLogin = async (loginToken) => {
|
||||||
indexMenu = menu[0].children[0].path
|
indexMenu = menu[0].children[0].path
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await router.replace({
|
|
||||||
path: indexMenu
|
|
||||||
})
|
|
||||||
dictApi.dictTree().then((data) => {
|
dictApi.dictTree().then((data) => {
|
||||||
// 设置字典到store中
|
// 设置字典到store中
|
||||||
tool.data.set('DICT_TYPE_TREE_DATA', data)
|
tool.data.set('DICT_TYPE_TREE_DATA', data)
|
||||||
})
|
})
|
||||||
|
await router.replace({
|
||||||
|
path: indexMenu
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue