Browse Source

字典类新增获取字典列表方法

master
bjfight 1 day ago
parent
commit
7d789ce7bb
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      datas/queryKey.js

+ 8
- 1
datas/queryKey.js View File

@@ -20,4 +20,11 @@ export const getNameCode = (type, name) => {
if (types[0] && types) {
return types[0] ? types[0].code : ''
}
}
}
/*通过字典type取字典*/
export const getDicWithType = (type) => {
var data = getItem('key')
let types = data[type]
return types;
}

Loading…
Cancel
Save