lilei 7 hours ago
parent
commit
a91b24bd29
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/utils/util.js

+ 1 - 4
src/utils/util.js

@@ -64,11 +64,8 @@ export function isMobileDevice() {
     // 方法2:通过屏幕宽度检测(通常移动端宽度小于768px)
     const isSmallScreen = window.innerWidth < 768;
     
-    // 方法3:检测触摸支持
-    const hasTouch = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
-    
     // 综合判断
-    return mobileRegex.test(userAgent) || isSmallScreen || hasTouch;
+    return mobileRegex.test(userAgent) || isSmallScreen;
 }
 
 export function timeFix () {