Home > Q&A > body text
The operation is to click on the size, the data is updated, but the dom is not updated.
迷茫2017-05-16 13:36:09
用this.$set(this, 'old', new)
漂亮男人2017-05-16 13:36:09
Use this.$nextTick() to update dom
this.$nextTick()
伊谢尔伦2017-05-16 13:36:09
vue has an api called nextTick. Take a look
習慣沉默2017-05-16 13:36:09
You can also use splice to modify the array: arr.splice(index, 1, newValue);