diff --git a/public/index.html b/public/index.html index e3bf599e..6472438a 100644 --- a/public/index.html +++ b/public/index.html @@ -3,6 +3,7 @@
+ @@ -34,11 +35,11 @@ // VConsole 默认会挂载到 `window.VConsole` 上 // let vConsole = new window.VConsole(); (function (doc, win) { + console.log("==window.location.pathname===",window.location.pathname) let docEl = doc.documentElement let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize' recalc = function () { var clientWidth = docEl.clientWidth; - // console.log("clientWidth",clientWidth) if (!clientWidth) return; if (clientWidth < 400) { clientWidth = 400; @@ -48,13 +49,20 @@ if (!doc.addEventListener) return; var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); if (isMobile) {// 是移动端不变 - + // console.log("是移动端不变") }else{ - win.addEventListener(resizeEvt, recalc, false); - doc.addEventListener('DOMContentLoaded', recalc, false); + if(window.location.pathname=='/h5/supplier/dispatch/kpiIndex'){ + // console.log("执行了执行了") + win.addEventListener(resizeEvt, recalc, false); + doc.addEventListener('DOMContentLoaded', recalc, false); + } + /*else{ + console.log("走着了这种饿 ") + }*/ } - // console.log("isMobile",isMobile) })(document, window); + +