lilei 3 달 전
부모
커밋
ddb8eb386a
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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 () {