监听对象中某一项的值_Vue中watch的详细用法_asta谢的博客-CSDN博客
watch: {
firstStepReturnData: {
handler() {
if (this.firstStepReturnData) {
this.createForm.enterpriseName =
this.firstStepReturnData.enterpriseName
}
},
immediate: true,
deep: true
},
}
watch: {
yearsList: {
handler() {
this.handleData();
},
immediate: true,
deep: true,
},
},