diff --git a/src/components/negative/dialog.vue b/src/components/negative/dialog.vue index f60e926..ff3db5f 100644 --- a/src/components/negative/dialog.vue +++ b/src/components/negative/dialog.vue @@ -521,10 +521,19 @@ watch( formData.value = {}; currentComplaintStage.value = STAGE_COMPLETION; } - } ); +// 新增:监听弹窗打开,强制刷新数据 +watch(visible, (newVal) => { + if (newVal) { + getDetails(); + verifyEditFlag.value = false; + formData.value = {}; + currentComplaintStage.value = STAGE_COMPLETION; + } +}); + const confirmationCompletionFlag = ref(false); function getDetails() { loading.value = true;