watch: {
modalShow(to) {
if (to) {
// this.standardData = JSON.parse(JSON.stringify());
this.standardData =[...this.templateFrom.templet]
this.title = this.templateFrom.templetName;
} else {
this.standardData = [];
this.title = '';
}
},
},
vue父向子传值 防止 深拷贝
最新推荐文章于 2024-05-16 14:48:42 发布