mo 1 jaar geleden
bovenliggende
commit
a5ebfeab87
2 gewijzigde bestanden met toevoegingen van 20 en 22 verwijderingen
  1. 20 21
      index.html
  2. 0 1
      src/views/login/index.tsx

+ 20 - 21
index.html

@@ -151,26 +151,26 @@
         vendorName = winNav.vendor,
         isOpera = winNav.userAgent.indexOf('OPR') > -1,
         isIEedge = winNav.userAgent.indexOf('Edge') > -1,
-        isIOSChrome = winNav.userAgent.match('CriOS'),
-        // QQ
-        isQQBriwser =
-          winNav.userAgent.indexOf('QQBrowser') > -1 ||
-          winNav.userAgent.indexOf('QQ') > -1,
-        // 搜狗
-        isSouggou =
-          winNav.userAgent.indexOf('se 2.x') > -1 ||
-          winNav.userAgent.indexOf('MetaSr') > -1,
-        // 360
-        is360 = check360(),
-        // 遨游
-        isMaxthon = winNav.userAgent.indexOf('Maxthon') > -1,
-        // 是否为2345浏览器
-        is2345Explorer = winNav.userAgent.includes('2345Explorer'),
-        // 世界之窗
-        isTheWorld = winNav.userAgent.indexOf('TheWorld') > -1,
-        // 猎豹
-        isLiebao = winNav.userAgent.indexOf('LBBROWSER') > -1;
-      console.log(winNav.userAgent)
+        isIOSChrome = winNav.userAgent.match('CriOS');
+      // // QQ
+      // isQQBriwser =
+      //   winNav.userAgent.indexOf('QQBrowser') > -1 ||
+      //   winNav.userAgent.indexOf('QQ') > -1,
+      // // 搜狗
+      // isSouggou =
+      //   winNav.userAgent.indexOf('se 2.x') > -1 ||
+      //   winNav.userAgent.indexOf('MetaSr') > -1,
+      // // 360
+      // is360 = check360(),
+      // // 遨游
+      // isMaxthon = winNav.userAgent.indexOf('Maxthon') > -1,
+      // // 是否为2345浏览器
+      // is2345Explorer = winNav.userAgent.includes('2345Explorer'),
+      // // 世界之窗
+      // isTheWorld = winNav.userAgent.indexOf('TheWorld') > -1,
+      // // 猎豹
+      // isLiebao = winNav.userAgent.indexOf('LBBROWSER') > -1;
+      // console.log(winNav.userAgent)
 
       /*
             isQQBriwser === false &&
@@ -181,7 +181,6 @@
         isTheWorld === false &&
         isLiebao === false
       */
-      console.log(isQQBriwser, isSouggou, is360, isMaxthon, is2345Explorer, isTheWorld, isLiebao)
       if (isIOSChrome) {
         return true;
       } else if (

+ 0 - 1
src/views/login/index.tsx

@@ -54,7 +54,6 @@ export default defineComponent({
               if( !popEvent.value ) {
                 return;
               }
-
               popEvent.value.prompt();
               popEvent.value.userChoice.then( (choiceResult:any) => {
                 if (choiceResult.outcome === 'accepted') {