Quellcode durchsuchen

debug vip login fix bug

lushuncheng vor 6 Jahren
Ursprung
Commit
2dec641242
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      plugins/nuxtAxios.js

+ 2 - 2
plugins/nuxtAxios.js

@@ -63,9 +63,9 @@ export default function({ $axios, redirect, req, ...args }) {
           break;
         }
       }
-      if (xAPP.toLowerCase() === 'ios') { //判断iPhone|iPad|iPod|iOS APP
+      if (xAPP.toLowerCase().indexOf('ios') !== -1) { //判断iPhone|iPad|iPod|iOS APP
         return 'ios';
-      } else if (xAPP.toLowerCase() === 'android') { //判断Android app
+      } else if (xAPP.toLowerCase().indexOf('android') !== -1) { //判断Android app
         return 'android';
       } else { // pc OR H5 todo 判断UA,精准识别是H5还是PC
         return 'pc';