瀏覽代碼

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

master
bjfight 4 週之前
父節點
當前提交
7d789ce7bb
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. 8
    1
      datas/queryKey.js

+ 8
- 1
datas/queryKey.js 查看文件

@@ -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…
取消
儲存