Merge pull request #6597 from YannisJustine/fix/issue-6535

fix: Destroy dialog instance on close to release unused memory
pull/6768/head
Tuğçe Küçükoğlu 2024-11-12 11:34:35 +03:00 committed by GitHub
commit 08cb394418
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;