Commit f3c7d82f authored by 毛线's avatar 毛线

test

parent a1f7dec5
...@@ -59,12 +59,13 @@ export default { ...@@ -59,12 +59,13 @@ export default {
'SetInnerHeight', 'SetInnerHeight',
]), ]),
initSceen() { initSceen() {
const { innerWidth, } = window const { innerWidth, innerHeight } = window
const isMobile = deviceType(navigator.userAgent) const isMobile = deviceType(navigator.userAgent)
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// return // return
} }
if (innerWidth < 750 || isMobile) {
if (innerWidth < 750 || (isMobile && innerWidth < 750)) {
this.initMobileSceen() this.initMobileSceen()
this.isMoblie = true this.isMoblie = true
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment