|
@@ -22,17 +22,3 @@ export const getDict = async () => {
|
|
});
|
|
});
|
|
return data;
|
|
return data;
|
|
};
|
|
};
|
|
-
|
|
|
|
-// export const getDict = async (dictType: string) => {
|
|
|
|
-// const rel: IDict[] = [{ key: "请选择", value: "" }];
|
|
|
|
-// const [err, { list = [] }] = await post<{ list: IAny[] }>("/common/dict", {
|
|
|
|
-// dictType
|
|
|
|
-// });
|
|
|
|
-// if (err) return rel;
|
|
|
|
-// return rel.concat(
|
|
|
|
-// list.map((x: any) => ({
|
|
|
|
-// key: x.dictLabel,
|
|
|
|
-// value: x.dictValue
|
|
|
|
-// }))
|
|
|
|
-// );
|
|
|
|
-// };
|
|
|