this.$set

changeChoice(indexex,index){
	const that = this;
	let details= that.typeItems[indexex].details[index]
	if(details.hasOwnProperty('show')){
		details.show = !details.show;
	}else{
		that.$set(details,'show',true);//给数组内的对象添加一个新的元素
	}
},

Logo

前往低代码交流专区

更多推荐