Moving Vue components around inside the dom?
问题 I am moving Vue components up in the dom if I am on mobile since I want to use positioning absolute and want to make sure I am not within a relative container. if (this.mobile) { this.$el.parentNode.removeChild(this.$el); document.getElementById('vue').appendChild(this.$el); } else { // Place the element back at it's original location. } This code is placed with a debounced resize method so it also works on resizing of the window. It works fine but when I start out on mobile and resize back