@ -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 {
@ -8,7 +8,7 @@
id="map"
ref="map"
show-location="true"
include-points="true"
:include-points="markers"
style="width: 100%; height: 1000rpx;"
/>
</template>
@ -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,
};
},