panhui 3 éve
szülő
commit
b988b7cec0
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      src/router/index.js

+ 4 - 4
src/router/index.js

@@ -9,10 +9,11 @@ function jsapiSign() {
     // return;
     // return;
     // eslint-disable-next-line no-unreachable
     // eslint-disable-next-line no-unreachable
     setTimeout(() => {
     setTimeout(() => {
+        console.log(/micromessenger/i.test(navigator.userAgent))
         if (/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);
             let isIOS = /iphone|ipad/i.test(navigator.userAgent);
             http.http
             http.http
                 .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.href })
                 .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.href })
@@ -52,7 +53,6 @@ function jsapiSign() {
         }
         }
     }, 200);
     }, 200);
 }
 }
-jsapiSign();
 const routes = [
 const routes = [
     {
     {
         path: '/',
         path: '/',