data() {
    return {
    	label: [{id:1}]
    }
},
demo () {
	this.$set(this.label, "name", '小明');
	console.log(this.label)
	// label: [{id:1, name: '小明'}]
}

Logo

前往低代码交流专区

更多推荐