panhui il y a 3 ans
Parent
commit
c201566046
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/router/index.js

+ 4 - 4
src/router/index.js

@@ -6,14 +6,14 @@ import http from '../plugins/http';
 
 jsapiSign();
 function jsapiSign() {
-    // return;
+    return;
     // eslint-disable-next-line no-unreachable
     setTimeout(() => {
         console.log(/micromessenger/i.test(navigator.userAgent))
         if (/micromessenger/i.test(navigator.userAgent)) {
-            // if (/localhost|(192\.168)/i.test(location.host)) {
-            //     return;
-            // }
+            if (/localhost|(192\.168)/i.test(location.host)) {
+                return;
+            }
             let isIOS = /iphone|ipad/i.test(navigator.userAgent);
             http.http
                 .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.href })