xiongzhu 4 лет назад
Родитель
Сommit
c2bf5d5c19
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/main/nine-space/src/router/index.js

+ 3 - 3
src/main/nine-space/src/router/index.js

@@ -6,11 +6,11 @@ import http from '../plugins/http';
 
 jsapiSign();
 function jsapiSign() {
-    if (/micromessenger/i.test(navigator.userAgent) && !/localhost|(192\.168)/i.test(location.host)) {
-        return;
-    }
     setTimeout(() => {
         if (/micromessenger/i.test(navigator.userAgent)) {
+            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 })