From aa059ff617f0902a1c15443aa517f07bdbc64bea Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期五, 27 九月 2024 15:50:03 +0800 Subject: [PATCH] Merge branch 'hc-evalution' of ssh://114.215.109.124:29418/supervision-vue into hc-evalution --- src/components/form/FYForm.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/form/FYForm.vue b/src/components/form/FYForm.vue index 94773fa..9c5405e 100644 --- a/src/components/form/FYForm.vue +++ b/src/components/form/FYForm.vue @@ -141,8 +141,19 @@ ); //鐩戝惉琛ㄥ崟缂栬緫鐘舵�� -watch(edit, (nValue) => { - emit('update:isEdit', nValue); +watch( + () => props.isEdit, + (nV, oV) => { + if (nV != oV) { + edit.value = nV; + } + }, + { immediate: true } +); +watch(edit, (nV, oV) => { + if (nV != oV) { + emit('update:isEdit', nV); + } }); defineExpose({ formObj, onSubmit, onCancel, onReset }); -- Gitblit v1.9.3