From 95e6ce394496d7a66241d41dddf3d320e59a55b2 Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Mon, 29 Apr 2024 14:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=AE=BE=E7=BD=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=A0=E5=8F=82=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/store/Setting.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/store/Setting.vue b/src/views/store/Setting.vue index 6fbd23f..0b8143c 100644 --- a/src/views/store/Setting.vue +++ b/src/views/store/Setting.vue @@ -163,11 +163,11 @@ export default { onFormSubmit (values) { this.isLoading = true const params = { - new_product_img_id: (values.new_product_img_id && values.new_product_img_id.join(',')) || '', - big_brand_img_id: (values.big_brand_img_id && values.big_brand_img_id.join(',')) || '', - new_people_order_img_id: (values.new_people_order_img_id && values.new_people_order_img_id.join(',')) || '', - flash_sale_img_id: (values.flash_sale_img_id && values.flash_sale_img_id.join(',')) || '', - ranking_img_id: (values.ranking_img_id && values.ranking_img_id.join(',')) || '' + new_product_img_id: (values.new_product_img_id && (Array.isArray(values.new_product_img_id) ? values.new_product_img_id.join(',') : values.new_product_img_id)) || '', + big_brand_img_id: (values.big_brand_img_id && (Array.isArray(values.big_brand_img_id) ? values.big_brand_img_id.join(',') : values.big_brand_img_id)) || '', + new_people_order_img_id: (values.new_people_order_img_id && (Array.isArray(values.new_people_order_img_id) ? values.new_people_order_img_id.join(',') : values.new_people_order_img_id)) || '', + flash_sale_img_id: (values.flash_sale_img_id && (Array.isArray(values.flash_sale_img_id) ? values.flash_sale_img_id.join(',') : values.flash_sale_img_id)) || '', + ranking_img_id: (values.ranking_img_id && (Array.isArray(values.ranking_img_id) ? values.ranking_img_id.join(',') : values.ranking_img_id)) || '' } Api.update({ form: { ...values, ...params } })