diff --git a/hx-ai-intelligent/src/api/index.ts b/hx-ai-intelligent/src/api/index.ts index fa25e6e..487df1a 100644 --- a/hx-ai-intelligent/src/api/index.ts +++ b/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); -}; \ No newline at end of file +};