fix: delete reload

This commit is contained in:
xingyu 2022-11-29 19:53:19 +08:00
parent cf4d1be55d
commit 1570e38792

View File

@ -196,16 +196,12 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
}
await nextTick()
return new Promise(async () => {
message
.delConfirm()
.then(() => {
config?.deleteApi && config?.deleteApi(ids)
message.success(t('common.delSuccess'))
})
.finally(async () => {
// 刷新列表
ref.value.commitProxy('query')
})
message.delConfirm().then(async () => {
await (config?.deleteApi && config?.deleteApi(ids))
message.success(t('common.delSuccess'))
// 刷新列表
ref.value.commitProxy('query')
})
})
}
/**