Explorar el Código

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

master
bjfight hace 1 mes
padre
commit
7d789ce7bb
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8
    1
      datas/queryKey.js

+ 8
- 1
datas/queryKey.js Ver fichero

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

Cargando…
Cancelar
Guardar