Correct calculation of whether the mobile browser

This commit is contained in:
qingwei.li
2016-12-18 10:49:21 +08:00
parent 74ee0cf6bc
commit 3af5ca5cd4
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -97,6 +97,6 @@ export function getRoute () {
}
export function isMobile () {
return /mobile/i.test(navigator.userAgent)
return document.body.clientWidth <= 600
}