JXDS18FUJT 2 veckor sedan
förälder
incheckning
c02c6cf719
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/utils/phone.ts

+ 1 - 1
src/utils/phone.ts

@@ -12,7 +12,7 @@ class Phone {
     isIos() {
     isIos() {
         console.log("成功进入isIos这个方法")
         console.log("成功进入isIos这个方法")
         var u = navigator.userAgent;
         var u = navigator.userAgent;
-        if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
+        if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1 ||(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) {
             return true;
             return true;
         }
         }
         return false;
         return false;