From 9cc8accbdece24d4740a50968151e78d801c75ae Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Wed, 6 Jul 2022 18:42:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/js/rem.js | 3 ++- front/src/App.vue | 2 +- front/src/views/home/components/header.vue | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/front/public/static/js/rem.js b/front/public/static/js/rem.js index 7be96650..8f834260 100644 --- a/front/public/static/js/rem.js +++ b/front/public/static/js/rem.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2021-06-15 18:50:17 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-06-10 15:45:52 + * @LastEditTime: 2022-07-06 10:54:11 * @Description: 告诉大家这是什么 */ ;(function (doc, win) { @@ -19,6 +19,7 @@ } */ clientWidth > 1920 ? (clientWidth = 1920) : clientWidth docEl.style.fontSize = clientWidth / 19.2 + 'px' + docEl.style.overflowY = 'auto' } if (!doc.addEventListener) return recalc() diff --git a/front/src/App.vue b/front/src/App.vue index ee08e473..aeb2000e 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -28,7 +28,7 @@ @import '~@/vab/styles/vab.less'; #vue-admin-beautiful{ max-width: 1920px; - max-height: 1080px; + // max-height: 1080px; margin: auto; height: 100%; position: relative; diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index edc0a605..2d232f3f 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -20,6 +20,7 @@ {{ item.name }} + --> + { mynoticeFlag.value = true - document.documentElement.style.overflowY = 'hidden' + // document.documentElement.style.overflowY = 'hidden' }) mynoticeDom.addEventListener('mouseout', () => { mynoticeFlag.value = false @@ -274,7 +277,7 @@ if (mynotice) { mynotice.addEventListener('mouseover', () => { mynoticeFlag.value = true - document.documentElement.style.overflowY = 'hidden' + // document.documentElement.style.overflowY = 'hidden' }) mynotice.addEventListener('mouseout', () => { mynoticeFlag.value = false