diff --git a/src/core/service/api/location.js b/src/core/service/api/location.js index 5ac5abdf0c34df93c27e69e90c3de73a4d3149d3..b8fe30deeb8af5fe0b468d204b7972b7b40c0ab4 100644 --- a/src/core/service/api/location.js +++ b/src/core/service/api/location.js @@ -17,7 +17,7 @@ export function openLocation ({ getApp().$router.push({ type: 'navigateTo', path: '/open-location', - params: { + query: { latitude, longitude, scale, diff --git a/src/platforms/h5/components/system-routes/open-location/index.vue b/src/platforms/h5/components/system-routes/open-location/index.vue index 2863af4929a2976d525fbf8a67c8a16290233c57..b8c1903bcbed5835c5b95d52786f2f90d9563ee8 100644 --- a/src/platforms/h5/components/system-routes/open-location/index.vue +++ b/src/platforms/h5/components/system-routes/open-location/index.vue @@ -6,7 +6,7 @@ ref="map" :src="src" allow="geolocation" - sandbox="allow-scripts allow-same-origin allow-forms" + sandbox="allow-scripts allow-same-origin allow-forms allow-top-navigation allow-modals allow-popups" frameborder="0" @load="_load" /> @@ -36,7 +36,7 @@ export default { scale, name, address - } = this.$route.params + } = this.$route.query return { latitude, longitude,