wangguoyu 3 tháng trước cách đây
mục cha
commit
80cc24bb61
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      components/customMap/customMap.vue

+ 2 - 2
components/customMap/customMap.vue

@@ -231,7 +231,7 @@ import {
 
 	function getCityName(latitude, longitude) {
 		const Key = `KBYBZ-FS3KZ-U2FXR-7VPDX-L7J46-23F55`
-		// const url = `https://apis.map.qq.com/ws/geocoder/v1?location=${latitude},${longitude}&key=${Key}&output=jsonp`;
+		 const url1 = `https://apis.map.qq.com/ws/geocoder/v1?location=${latitude},${longitude}&key=${Key}&output=jsonp`;
 		const url = `https://apis.map.qq.com/ws/geocoder/v1`;
 		//const url = `https://apis.map.qq.com/ws/geocoder/v1/`;
 		// #ifdef H5
@@ -251,7 +251,7 @@ import {
 
 		// #ifdef APP
 		uni.request({
-			url: url,
+			url: url1,
 			success: (res) => {
 				if (res.data.status === 0) {
 					console.log('当前城市:', res);