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 {