From a1b3ee2c8c1f6c961d8aef93e31a20d7cab61823 Mon Sep 17 00:00:00 2001 From: chenpingsen Date: Thu, 25 Jul 2024 14:33:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=A8=E5=B1=80=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/api/index.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 +};