发现数据确实改变了。但是视图没有渲染。原因是赋值的问题,应该这样动态增加属性

vm.$set(vm.template.titleAttachInfoDetail,newKey,newVal)

vm 当前Vue对象实例名字
vm.template.titleAttachInfoDetail  需要赋值的对象

newKey 赋值的key
newVal   赋值的val

 

相关文章: