
image.png
關(guān)閉彈窗后表單進行重置,但是每次打開都是上次保存的值,子組件監(jiān)聽不到父組件值的更新
<qy-info ref="qyInfoRef" :qyInfo="insuranceForm.qyInfo||{}" :disabled="disabled" :key="timerKey"/>
const timerKey = ref(0)
關(guān)閉彈窗,重置表單后
timerKey.value = new Date().getTime()