From 9968d14c393e6362192039d797cd58758a8fc89f Mon Sep 17 00:00:00 2001 From: 落叶橘橙 <wzsdch@qq.com> Date: 星期四, 25 四月 2024 10:15:20 +0800 Subject: [PATCH] update src/components/ImagePreview/index.vue. 图片预览功能 let real_src_list = props.src.split(',');会多出一个''对象,会导致图片浏览时多一个空白预览。增加一个判空。 --- src/components/Process/submitVerify.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/Process/submitVerify.vue b/src/components/Process/submitVerify.vue index b0e4c11..d71b855 100644 --- a/src/components/Process/submitVerify.vue +++ b/src/components/Process/submitVerify.vue @@ -142,8 +142,7 @@ participantVo: undefined, multiInstance: undefined, businessKey: undefined, - wfNodeConfigVo: undefined, - wfDefinitionConfigVo: undefined + wfNodeConfigVo: undefined }); //鍔犵 鍑忕鏍囬 const title = ref(''); @@ -209,10 +208,15 @@ await proxy?.$modal.confirm('鏄惁纭鎻愪氦锛�'); loading.value = true; buttonLoading.value = true; - await completeTask(form.value).finally(() => (loading.value = false)); - dialog.visible = false; - emits('submitCallback'); - proxy?.$modal.msgSuccess('鎿嶄綔鎴愬姛'); + try { + await completeTask(form.value); + dialog.visible = false; + emits('submitCallback'); + proxy?.$modal.msgSuccess('鎿嶄綔鎴愬姛'); + } finally { + loading.value = false + buttonLoading.value = false + } }; /** 椹冲洖寮圭獥鎵撳紑 */ -- Gitblit v1.9.3