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