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) {