this.arr = [{hour: 8, name: 'yibo'}, {hour: 8, name: 'lisi'}]
1、强制刷新
this.$forceUpdate()
2、数组解构
this.arr = [...this.arr]
3、$set API
this.$set(this.arr[i], 'hour', this.arr[i].hour + 1)
this.arr = [{hour: 8, name: 'yibo'}, {hour: 8, name: 'lisi'}]1、强制刷新this.$forceUpdate()2、数组解构this.arr = [...this.arr]3、$set APIthis.$set(this.arr[i], 'hour', this.arr[i].hour + 1)...
this.arr = [{hour: 8, name: 'yibo'}, {hour: 8, name: 'lisi'}]
1、强制刷新
this.$forceUpdate()
2、数组解构
this.arr = [...this.arr]
3、$set API
this.$set(this.arr[i], 'hour', this.arr[i].hour + 1)
更多推荐
所有评论(0)