|
|
@@ -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: '/',
|