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 () {},