data() {
return {
orderList: [],
}
},
methods: {
handleDelete(item, index) {
// 删除接口的请求
if(res.data === 200) {
this.orderList.splice(index, 1)
}
}
}
这样就实现局部刷新,无感刷新,修改数据也是一样的,从修改页面返回列表中将修改的内容带回来即可