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)
Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐