fix: Destroy dialog instance on close to release unused memory
parent
69d0407fe6
commit
824cdfe393
|
@ -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