fix: Destroy dialog instance on close to release unused memory

pull/6597/head
Yannis JUSTINE 2024-10-17 19:07:33 +02:00
parent 69d0407fe6
commit 824cdfe393
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ export default {
methods: { methods: {
onDialogHide(instance) { onDialogHide(instance) {
!this.currentInstance && instance.options.onClose && instance.options.onClose({ type: 'dialog-close' }); !this.currentInstance && instance.options.onClose && instance.options.onClose({ type: 'dialog-close' });
delete this.instanceMap[instance.key];
}, },
onDialogAfterHide() { onDialogAfterHide() {
this.currentInstance && delete this.currentInstance; this.currentInstance && delete this.currentInstance;