From 01b5491c2920a53f6bb895a2938f1e385f80d74f Mon Sep 17 00:00:00 2001 From: limengyang <2509946015@qq.com> Date: Thu, 18 Apr 2024 10:05:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(lmy):=20=E6=89=B9=E9=87=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/axios/Axios.ts | 14 +++++++------- src/views/regionalSpotManage/components/list.vue | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/utils/http/axios/Axios.ts b/src/utils/http/axios/Axios.ts index d1f8787..95c650d 100644 --- a/src/utils/http/axios/Axios.ts +++ b/src/utils/http/axios/Axios.ts @@ -132,13 +132,13 @@ export class VAxios { if (params.data) { Object.keys(params.data).forEach((key) => { - const value = params.data![key]; - if (Array.isArray(value)) { - value.forEach((item) => { - formData.append(`${key}[]`, item); - }); - return; - } + // const value = params.data![key]; + // if (Array.isArray(value)) { + // value.forEach((item) => { + // formData.append(`${key}[]`, item); + // }); + // return; + // } formData.append(key, params.data![key]); }); diff --git a/src/views/regionalSpotManage/components/list.vue b/src/views/regionalSpotManage/components/list.vue index 117697f..611bdac 100644 --- a/src/views/regionalSpotManage/components/list.vue +++ b/src/views/regionalSpotManage/components/list.vue @@ -294,6 +294,7 @@ const res = await regionalSpotManageOpsDeleteProductApi(param.value); if (res.success) { message.success('删除成功'); + delVisibleCancel(); } else { message.success(res.message); } @@ -393,7 +394,7 @@ { ghsCode: ghsCode, ghsName: ghsName, - areaIds: impotrCheckboxValue.value, + areaIds: impotrCheckboxValue.value.join(','), }, productExcelList.value[0], ); -- 2.24.1