在代码中添加: this.$refs.table.clearSelection(); 即可
handleStorageStatus(data) {
console.log('data', data)
uni.showModal({
title: '修改确认',
content: `确认将所选任务修改为${data.name}状态吗?`,
success: (res) => {
if (res.confirm) {
uni.showToast({
title: `修改成功!`
})
this.$refs.table.clearSelection(); // 清空用户的选择
this.$refs.popup.close();
} else if (res.cancel) {
console.log('用户取消操作');
this.$refs.popup.close();
}
}
});
},