mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-02 20:34:07 +08:00
1. 增加字典数据接口
2. 前端接入全局字典数据
This commit is contained in:
@@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => {
|
||||
NProgress.done()
|
||||
} else {
|
||||
if (store.getters.roles.length === 0) {
|
||||
// 获取字典数据
|
||||
store.dispatch('dict/loadDictDatas')
|
||||
// 判断当前用户是否已拉取完user_info信息
|
||||
store.dispatch('GetInfo').then(res => {
|
||||
// 拉取user_info
|
||||
|
Reference in New Issue
Block a user