Browse Source

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

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

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

@ -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);
};
};

Loading…
Cancel
Save