一、Array更新了DOM不更新
//Vue中更新数组
this.$set(this.Arr, index, value)
二、Object更新了DOM不更新
//Vue中Object添加元素
this.$set(this.Obj, key, value)
//Vue中Object删除元素
delete this.Obj[key]
this.$forceUpdate()
一般解决方案
//1、DOM更新回调中做值更新
this.$nextTick(() => {
//do some thing
})
//2、赋值完了刷新
//do some thing
this.$forceUpdate()