diff --git a/src/components/dialog/Dialog.vue b/src/components/dialog/Dialog.vue index bac4165b7..1dc14f122 100755 --- a/src/components/dialog/Dialog.vue +++ b/src/components/dialog/Dialog.vue @@ -223,7 +223,7 @@ export default { if (!this.styleElement) { this.styleElement = document.createElement('style'); this.styleElement.type = 'text/css'; - document.body.appendChild(this.styleElement); + document.head.appendChild(this.styleElement); let innerHTML = ''; for (let breakpoint in this.breakpoints) { @@ -241,7 +241,7 @@ export default { }, destroyStyle() { if (this.styleElement) { - document.body.removeChild(this.styleElement); + document.head.removeChild(this.styleElement); this.styleElement = null; } }