mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
fix: delete reload
This commit is contained in:
parent
cf4d1be55d
commit
1570e38792
@ -196,13 +196,9 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
|
|||||||
}
|
}
|
||||||
await nextTick()
|
await nextTick()
|
||||||
return new Promise(async () => {
|
return new Promise(async () => {
|
||||||
message
|
message.delConfirm().then(async () => {
|
||||||
.delConfirm()
|
await (config?.deleteApi && config?.deleteApi(ids))
|
||||||
.then(() => {
|
|
||||||
config?.deleteApi && config?.deleteApi(ids)
|
|
||||||
message.success(t('common.delSuccess'))
|
message.success(t('common.delSuccess'))
|
||||||
})
|
|
||||||
.finally(async () => {
|
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
ref.value.commitProxy('query')
|
ref.value.commitProxy('query')
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user