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: {
onDialogHide(instance) {
!this.currentInstance && instance.options.onClose && instance.options.onClose({ type: 'dialog-close' });
delete this.instanceMap[instance.key];
},
onDialogAfterHide() {
this.currentInstance && delete this.currentInstance;