📅  最后修改于: 2022-03-11 15:01:50.088000             🧑  作者: Mango
// Doing like this will only update the data
// But will not reactive to the DOM
this.items[index] = val;
// In order to make it reactive to the DOM
// Do it like this
this.$set(this.items, index, val)