From 6b0409622bab8352d2ad639f7913edd15f8b357d Mon Sep 17 00:00:00 2001 From: "mo.duan" Date: Thu, 26 Sep 2019 10:09:24 +0800 Subject: [PATCH] bug fixed #6305 --- examples/routers/modal.vue | 317 +++++++++++++++++--------------- src/components/modal/confirm.js | 4 +- 2 files changed, 176 insertions(+), 145 deletions(-) diff --git a/examples/routers/modal.vue b/examples/routers/modal.vue index 844ff21b..5b74cae1 100644 --- a/examples/routers/modal.vue +++ b/examples/routers/modal.vue @@ -1,157 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/modal/confirm.js b/src/components/modal/confirm.js index 379e2d6d..0c563c50 100644 --- a/src/components/modal/confirm.js +++ b/src/components/modal/confirm.js @@ -184,7 +184,9 @@ Modal.newInstance = properties => { }, destroy () { this.$destroy(); - document.body.removeChild(this.$el); + if( this.$el ){ + document.body.removeChild(this.$el); + } this.onRemove(); }, onOk () {},