fix:全局枚举请求代码格式修改

This commit is contained in:
chenpingsen
2024-07-25 14:33:49 +08:00
parent dd7c417f81
commit a1b3ee2c8c

View File

@@ -46,18 +46,17 @@ export const getAllEnum = async ({
api = `${BASE_URL}/operation/enum/getAllEnum`,
params = {},
}: dictHttpConfig) => {
const res = await http.post(api, params);
const res = await http.get(api, params);
return Promise.resolve(res);
};
/**
* 获取单个枚举(需传参,参数 enumType)
* 获取单个枚举(需传参,参数 enumType)
*/
export const getEnum = async ({
api = `${BASE_URL}/operation/enum/getEnum`,
params = {},
}: dictHttpConfig) => {
const res = await http.post(api, params);
const res = await http.get(api, params);
return Promise.resolve(res);
};
};