watch: { id: { handler(newName, oldName) { console.log(newName,oldName) this.queryParams.classfiyId=newName; this.getList(); }, immediate: true, deep: true } },
vue监听数据变化
最新推荐文章于 2024-06-05 16:27:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
watch: { id: { handler(newName, oldName) { console.log(newName,oldName) this.queryParams.classfiyId=newName; this.getList(); }, immediate: true, deep: true } },