ソースを参照

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

master
bjfight 1ヶ月前
コミット
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;
}

読み込み中…
キャンセル
保存