删除一行数据之后,selectedIndexs: [] 已经清除,这一行数据也已经删除,但是下一行数据前会出现一个对勾,批量删除按钮也被禁用,但是对勾去不掉
一下是删除多行数据之后重新请求数据的代码
const res = await this.$myHttp({
url: '/app_admin/deleteByIds',
method: 'GET',
data: {
ids: ids
}
}).then((res) => {
uni.showToast({
icon: 'none',
title: '删除成功',
duration: 2000
})
})
this.requestData(this.options).then(()=>{
console.log("清空选中下标")
this.selectedIndexs.clear
console.log(this.selectedIndexs.length)
})
我怀疑是
// 多选
selectionChange(e) {
console.log(e.detail)
this.selectedIndexs = e.detail.index
},
里面的e.detail.index没有清除,但e貌似是一个时间,又没有办法获得这个对象,怎么解决