From 15d80388b4e1c4a83e50befd4775072e86e6e220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 28 Jul 2024 19:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=86=E9=94=80=E5=95=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97(6=E4=B8=AA=E8=A1=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shop/merchantType/components/merchantTypeEdit.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/shop/merchantType/components/merchantTypeEdit.vue b/src/views/shop/merchantType/components/merchantTypeEdit.vue index fb9368b..5df79ea 100644 --- a/src/views/shop/merchantType/components/merchantTypeEdit.vue +++ b/src/views/shop/merchantType/components/merchantTypeEdit.vue @@ -154,7 +154,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateMerchantType : addMerchantType; + const saveOrUpdate = isUpdate.value + ? updateMerchantType + : addMerchantType; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -177,12 +179,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else {