JXDS18FUJT 2 weeks ago
parent
commit
c02c6cf719
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/phone.ts

+ 1 - 1
src/utils/phone.ts

@@ -12,7 +12,7 @@ class Phone {
     isIos() {
         console.log("成功进入isIos这个方法")
         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 false;