Explorar el Código

debug vip login fix bug

lushuncheng hace 6 años
padre
commit
b1fb7e348f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      mixins/getDeviceType.js

+ 2 - 2
mixins/getDeviceType.js

@@ -28,9 +28,9 @@ export default {
         }
       }
       console.log('x_app:' +xAPP)
-      if (xAPP.toLowerCase() === 'ios') { //判断iPhone|iPad|iPod|iOS APP
+      if (xAPP.toLowerCase().indexOf('ios') !== -1) { //判断iPhone|iPad|iPod|iOS APP
         this.deviceType = 'ios';
-      } else if (xAPP.toLowerCase() === 'android') { //判断Android app
+      } else if (xAPP.toLowerCase().indexOf('android') !== -1) { //判断Android app
         this.deviceType = 'android';
       } else { // pc OR H5 todo 判断UA,精准识别是H5还是PC
         this.deviceType =  'pc';