From 571d1e688d8262a541bd2185d455a4b24bff8da9 Mon Sep 17 00:00:00 2001 From: qiang Date: Wed, 19 Jun 2019 12:00:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=AE=89=E5=8D=93?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=86=85=E7=BD=AE=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E4=BD=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E2=80=9C?= =?UTF-8?q?=E5=8E=BB=E8=BF=99=E9=87=8C=E2=80=9D=E6=8C=89=E9=92=AE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=8F=8A=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2=E5=90=8E=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E5=88=B0=E6=9F=A5=E7=9C=8B=E4=BD=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/service/api/location.js | 2 +- .../h5/components/system-routes/open-location/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/service/api/location.js b/src/core/service/api/location.js index 5ac5abdf0..b8fe30dee 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 2863af492..b8c1903bc 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, -- GitLab