From 5d045b62e9924b95b87e219ab4e6d5174d205e29 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Sat, 5 Jun 2021 21:00:17 +0800 Subject: [PATCH] =?UTF-8?q?tab=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/rolling-notice/index.vue | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ruoyi-ui/src/components/rolling-notice/index.vue b/ruoyi-ui/src/components/rolling-notice/index.vue index 8a2c2d3e5..438209423 100644 --- a/ruoyi-ui/src/components/rolling-notice/index.vue +++ b/ruoyi-ui/src/components/rolling-notice/index.vue @@ -57,22 +57,22 @@ export default { }, }; // JavaScript Document -(function px2rem(doc, win) { - var docEl = doc.documentElement, - resizeEvt = "orientationchange" in window ? "orientationchange" : "resize", - recalc = function () { - var clientWidth = docEl.clientWidth; - if (!clientWidth) return; - docEl.style.fontSize = 100 * (clientWidth / 750) + "px"; - }; - if (!doc.addEventListener) return; - // 窗口大小发生变化,初始化 - win.addEventListener(resizeEvt, recalc, false); - doc.addEventListener("DOMContentLoaded", recalc, false); - setTimeout(function () { - px2rem(doc, win); - }, 200); -})(document, window); +// (function px2rem(doc, win) { +// var docEl = doc.documentElement, +// resizeEvt = "orientationchange" in window ? "orientationchange" : "resize", +// recalc = function () { +// var clientWidth = docEl.clientWidth; +// if (!clientWidth) return; +// docEl.style.fontSize = 100 * (clientWidth / 750) + "px"; +// }; +// if (!doc.addEventListener) return; +// // 窗口大小发生变化,初始化 +// win.addEventListener(resizeEvt, recalc, false); +// doc.addEventListener("DOMContentLoaded", recalc, false); +// setTimeout(function () { +// px2rem(doc, win); +// }, 200); +// })(document, window);