|
@@ -27,8 +27,11 @@ const addDialog = (options: DialogOptions) => {
|
|
|
|
|
|
/** 关闭弹框 */
|
|
|
const closeDialog = (options: DialogOptions, index: number, args?: any) => {
|
|
|
- dialogStore.value.splice(index, 1);
|
|
|
+ dialogStore.value[index].visible = false;
|
|
|
options.closeCallBack && options.closeCallBack({ options, index, args });
|
|
|
+ useTimeoutFn(() => {
|
|
|
+ dialogStore.value.splice(index, 1);
|
|
|
+ }, 200);
|
|
|
};
|
|
|
|
|
|
/**
|