deleteItem: function (array,item) { const index = this.array.findIndex(text => text.name === item.name); this.array.splice(index, 1);}
亲测vue 中可用