// 数组
this.$set(this.items, 1, {attribute1:1})

// 对象
this.obj=Object.assign({},this.obj,{newObjAttr:1}))
Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐