关闭弹窗后表单进行重置,但是每次打开都是上次保存的值,子组件监听不到父组件值的更新
<qy-info ref="qyInfoRef" :qyInfo="insuranceForm.qyInfo||{}" :disabled="disabled" :key="timerKey"/>
const timerKey = ref(0)
关闭弹窗,重置表单后
timerKey.value = new Date().getTime()
关闭弹窗后表单进行重置,但是每次打开都是上次保存的值,子组件监听不到父组件值的更新
<qy-info ref="qyInfoRef" :qyInfo="insuranceForm.qyInfo||{}" :disabled="disabled" :key="timerKey"/>
const timerKey = ref(0)
关闭弹窗,重置表单后
timerKey.value = new Date().getTime()