소스 검색

no message

linwenxin 9 달 전
부모
커밋
a30a9f071a
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/main.js
  2. 2 2
      src/utils/lbs.js

+ 2 - 2
src/main.js

@@ -71,7 +71,7 @@ Vue.use(ElementPlugins, {
 Vue.use(AMap)
 AMap.initAMapApiLoader({
   // 高德的key
-  key: '5894bf90997454b0df3c3d60cab12f64',
+  key: 'df9bfabcba60cc6e7ad45ae9923a682d',
   version: '2.0',
   plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.DistrictSearch']
 })
@@ -86,7 +86,7 @@ AMap.initAMapApiLoader({
 // Vue.use(AMap)
 // AMap.initAMapApiLoader({
 //   // 高德的key
-//   key: '5894bf90997454b0df3c3d60cab12f64',
+//   key: 'df9bfabcba60cc6e7ad45ae9923a682d',
 //   plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch']
 // })
 

+ 2 - 2
src/utils/lbs.js

@@ -68,7 +68,7 @@ export function axiosMapZb(params) {
     url: `https://restapi.amap.com/v3/place/around`,
     method: 'get',
     params: {
-      key: 'b772f8b0ace6bc96c04ae8e48f241e36',
+      key: '428a7111e02ea8367a3b34804eaa025b',
       ...params
     }
   })
@@ -80,7 +80,7 @@ export function getIPAdd() {
     try {
       getIPs(ip => {
         axios
-          .get('https://restapi.amap.com/v3/ip?output=json&key=b772f8b0ace6bc96c04ae8e48f241e36&ip=' + ip)
+          .get('https://restapi.amap.com/v3/ip?output=json&key=428a7111e02ea8367a3b34804eaa025b&ip=' + ip)
           .then(r)
           .catch(j)
       })