fix: Destroy dialog instance on close to release unused memory
parent
69d0407fe6
commit
824cdfe393
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue