From 9ba53f7dbe625f1b7835ab082d04fbc0f7705afe Mon Sep 17 00:00:00 2001 From: toesbieya <1647775459@qq.com> Date: Sat, 6 Mar 2021 11:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/full/src/util/browser.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vue/full/src/util/browser.js b/vue/full/src/util/browser.js index 7708b09..43eb06c 100644 --- a/vue/full/src/util/browser.js +++ b/vue/full/src/util/browser.js @@ -1,8 +1,7 @@ import {Const} from "el-admin-layout" export function isMobile() { - const rect = document.body.getBoundingClientRect() - return rect.width <= Const.maxMobileWidth + return document.body.clientWidth <= Const.maxMobileWidth } /**