Vue.js中使用 this.$set 更新数组元素属性
你可以使用'this.$set'来更新'this.templateData[index].checkAll1'的值。
this.$set(this.templateData[index], 'checkAll1', val);
这将强制Vue响应式系统追踪'this.templateData[index].checkAll1'的更改,并触发相关的更新。
原文地址: https://www.cveoy.top/t/topic/qkyZ 著作权归作者所有。请勿转载和采集!