Fix auto2top in mobile

This commit is contained in:
qingwei.li 2016-12-17 15:08:44 +08:00
commit 299c31dff9
4 changed files with 21 additions and 6 deletions

View file

@ -95,3 +95,8 @@ export function getRoute () {
return route
}
export function isMobile () {
return /mobile/i.test(navigator.userAgent)
}