Browse Source

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

temp
chenpingsen 4 months ago
parent
commit
a1b3ee2c8c
  1. 5
      hx-ai-intelligent/src/api/index.ts

5
hx-ai-intelligent/src/api/index.ts

@ -46,11 +46,10 @@ 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)
*/
@ -58,6 +57,6 @@ 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);
};
Loading…
Cancel
Save