From 907dc4efb4ef6ef556549ba9a30da2ffa57d9901 Mon Sep 17 00:00:00 2001 From: 周旭湘 <3423729430@qq.com> Date: 星期二, 07 五月 2024 17:39:43 +0800 Subject: [PATCH] update src/layout/components/AppMain.vue. 解决点击左边菜单时页面空白或者刷新整个页面的问题 --- 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