UNPKG

@cdwx/system

Version:

成都文宣业务类服务模块组件库

23 lines (22 loc) 438 B
import c from "./http-client.js"; const n = "/dict"; async function l(r, a) { try { const t = await c.http.get(`${n}/item/list`, { dictCode: r }, a); return new Promise((i) => { i({ ...t, data: t.data.map((e) => ({ ...e, label: e.dictLabel, value: e.dictValue })) }); }); } catch (t) { return Promise.reject(t); } } export { l as getDictListApi };