|
@@ -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 () {
|