mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
fix: delete reload
This commit is contained in:
parent
cf4d1be55d
commit
1570e38792
@ -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')
|
||||
})
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user