当改变数组中索引找到的对象的一部分时,如何触发更新?
这些文档展示了如何更改数组的值:
Vue.set(example1.items, indexOfItem, newValue)
或
example1.items.splice(indexOfItem, 1, newValue)
但是如何在不改变对象其余部分的情况下改变数组中对象的属性值呢?
The following w或ks to update the property, but Vue doesn't react to the change until something else triggers an update.
example1.items[indexOfItem].some_object_property = false