代码优化

master
toesbieya 5 years ago
parent 4a79a17402
commit 9ba53f7dbe
  1. 3
      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
}
/**

Loading…
Cancel
Save