Merge pull request #6597 from YannisJustine/fix/issue-6535
fix: Destroy dialog instance on close to release unused memorypull/6768/head
commit
08cb394418
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue