diff --git a/App.vue b/App.vue index a1419a9..3f55ab8 100644 --- a/App.vue +++ b/App.vue @@ -21,7 +21,7 @@ export default { try { if (options.query.scene) { const query = formatQuery(decodeURIComponent(options.query.scene)); - if (query && query.d) { + if (options.path === 'pages/index/index' && query && query.d) { await this.getTokenByUserId({ params: { userId: query.d } }); this.initCommon(); } else { diff --git a/components/history-map/history-map.vue b/components/history-map/history-map.vue index 9b1921c..c68bcc7 100644 --- a/components/history-map/history-map.vue +++ b/components/history-map/history-map.vue @@ -8,7 +8,7 @@ id="map" ref="map" show-location="true" - include-points="true" + :include-points="markers" style="width: 100%; height: 1000rpx;" /> diff --git a/pages/sign/sign.vue b/pages/sign/sign.vue index 37d4064..b337522 100644 --- a/pages/sign/sign.vue +++ b/pages/sign/sign.vue @@ -28,8 +28,8 @@ export default { success: false, type: 0, // 0进 / 1出 timer: null, - longitude: 37.80079, - latitude: 112.58679, + latitude: 37.80079, + longitude: 112.58679, }; },