From 4f407ccabcfc5c52774ccd85f5178a76ffb9115e Mon Sep 17 00:00:00 2001 From: pangxingyue <120277894@qq.com> Date: Thu, 11 Mar 2021 17:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=89=93=E5=8D=B0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 89e874426..1f0fe9699 100644 --- a/src/main.js +++ b/src/main.js @@ -105,13 +105,13 @@ permission() FastClick.attach(document.body) // 监听input弹窗滚动到可视区域 window.addEventListener('resize', function () { - if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA') { - console.log('asdasdaaaaaaaaaaaa======================') + if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA') { window.setTimeout(function () { document.activeElement.scrollIntoViewIfNeeded() }, 0) } }) + Vue.config.productionTip = false new Vue({ router,