1. 增加字典数据接口

2. 前端接入全局字典数据
This commit is contained in:
YunaiV
2021-01-08 01:28:41 +08:00
parent 74daab066d
commit dba723b8fc
19 changed files with 245 additions and 23 deletions

View File

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