diff --git a/src/Message.vue b/src/Message.vue index b12c2ba..07c1919 100644 --- a/src/Message.vue +++ b/src/Message.vue @@ -101,7 +101,9 @@ export default { }, destroyed () { - this.$el.remove() + if (this.$el.parentNode) { + this.$el.parentNode.removeChild(this.$el) + } }, computed: {