From 0b8f48fb610c8a2e3f9fb633241fcf46a78da69d Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: 星期二, 30 四月 2024 22:46:10 +0800 Subject: [PATCH] fix: 更新时有岗位会被赋值为空的bug --- 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