Skip to content

Commit

Permalink
fix: 删除和回复多条数据后,设置选择项为空数组
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Apr 30, 2024
1 parent bbb9f65 commit 211a1d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ma-crud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ const deletesMultipleAction = async () => {
options.value.afterDelete(response)
}
response.success && Message.success(response.message || `删除成功!`)
selecteds.value = []
await refresh()
} else {
Message.error('至少选择一条数据')
Expand All @@ -674,6 +675,7 @@ const recoverysMultipleAction = async () => {
if (selecteds.value && selecteds.value.length > 0) {
const response = await options.value.recovery.api({ ids: selecteds.value })
response.success && Message.success(response.message || `恢复成功!`)
selecteds.value = []
await refresh()
} else {
Message.error('至少选择一条数据')
Expand Down

0 comments on commit 211a1d9

Please sign in to comment.