对应嵌套多层的,使用$set也会有概率不触发,经过多次实验发现需要延时加深克隆改变才能完美生效
changeInput(index,value,key,type) {
this.$nextTick(() => {
if(type) {
this.dataTwo[index][key] =value || 0
this.dataTwo = JSON.parse(JSON.stringify(this.dataTwo))
} else {
this.dataOne[index][key] = value|| 0
this.dataOne = JSON.parse(JSON.stringify(this.dataOne ))
}
})
},