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`, api = `${BASE_URL}/operation/enum/getAllEnum`,
params = {}, params = {},
}: dictHttpConfig) => { }: dictHttpConfig) => {
const res = await http.post(api, params); const res = await http.get(api, params);
return Promise.resolve(res); return Promise.resolve(res);
}; };
/** /**
* ( enumType) * ( enumType)
*/ */
@ -58,6 +57,6 @@ export const getEnum = async ({
api = `${BASE_URL}/operation/enum/getEnum`, api = `${BASE_URL}/operation/enum/getEnum`,
params = {}, params = {},
}: dictHttpConfig) => { }: dictHttpConfig) => {
const res = await http.post(api, params); const res = await http.get(api, params);
return Promise.resolve(res); return Promise.resolve(res);
}; };
Loading…
Cancel
Save