computed:{
dataChange () {
const {mapId, sfsc} = this;
return {mapId, sfsc};
}
},
watch: {
//监听组合参数任意变化
dataChange: {
handler(val) {
this.loadPage();
},
deep: true,
immediate: true
}
},
watch监听(vue组合参数)
最新推荐文章于 2024-07-06 16:47:02 发布