panhui 3 年 前
コミット
b988b7cec0
1 ファイル変更4 行追加4 行削除
  1. 4 4
      src/router/index.js

+ 4 - 4
src/router/index.js

@@ -9,10 +9,11 @@ function jsapiSign() {
     // 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 })
@@ -52,7 +53,6 @@ function jsapiSign() {
         }
     }, 200);
 }
-jsapiSign();
 const routes = [
     {
         path: '/',