From 6c9d008a396dbfda306eda5207de234566f16ad2 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 5 Sep 2022 16:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=8E=B7=E5=8F=96=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E5=B7=B2=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMyGrid/AppMyGrid.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/apps/AppMyGrid/AppMyGrid.vue b/src/apps/AppMyGrid/AppMyGrid.vue index aae2b971..b93f41b9 100644 --- a/src/apps/AppMyGrid/AppMyGrid.vue +++ b/src/apps/AppMyGrid/AppMyGrid.vue @@ -57,15 +57,17 @@ export default { success: res => { const {latitude: lat, longitude: lng} = res if (!!lat && !!lng) { - this.$http.post('/app/appdvcpconfig/apiForward', qs.stringifyUrl({ - url: "https://apis.map.qq.com/ws/geocoder/v1/?get_poi=1", - query: { - location: [lat, lng].toString(), - key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY", + this.$http.post('/app/appdvcpconfig/apiForward', null, { + params: { + url: qs.stringifyUrl({ + url: "https://apis.map.qq.com/ws/geocoder/v1/?get_poi=1", + query: { + location: [lat, lng].toString(), + key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY", + } + }) } - }, { - headers: {"Content-Type": "application/json"} - })) + }) .then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address})) .then(res => { if (res?.code == 0) {