diff --git a/src/components/RightPanel/index.vue b/src/components/RightPanel/index.vue index fb356c39..40b14c27 100644 --- a/src/components/RightPanel/index.vue +++ b/src/components/RightPanel/index.vue @@ -45,6 +45,10 @@ export default { mounted() { this.insertToBody() }, + beforeDestroy() { + const elx = this.$refs.rightPanel + elx.remove() + }, methods: { addEventClick() { window.addEventListener('click', this.closeSidebar) diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index 4691e277..a991b771 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -91,4 +91,7 @@ export default { .hideSidebar .fixed-header{ width: calc(100% - 54px) } + .mobile .fixed-header{ + width: 100%; + } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 44c6de90..221d421c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -220,7 +220,6 @@ $cursor: #fff; color: #454545; } } -