feat: 地图更换为一致的key

This commit is contained in:
Tony 2023-11-29 09:27:01 +08:00
parent 667edf5fde
commit 5ca72436bd
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@
import icon from './icon/sxt.png' import icon from './icon/sxt.png'
import icon2 from './icon/jk.png' import icon2 from './icon/jk.png'
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
securityJsCode: "2933fa5683de5f95c0337aa5ff6a1174", securityJsCode: "b6314ade5a42c3f3ac2284b6d4d89b1f",
}; };
export default { export default {
name: "map-view", name: "map-view",
@ -38,7 +38,7 @@
methods:{ methods:{
initAMap(){ initAMap(){
AMapLoader.load({ AMapLoader.load({
key: "0324b5aea42065e5bbcde850eed8cbef", // WebKey load key: "e49669059fa36494531a82ed982f395c", // WebKey load
plugins: [], // 使'AMap.Scale' plugins: [], // 使'AMap.Scale'
}) })
.then((AMap) => { .then((AMap) => {

View File

@ -16,7 +16,7 @@
import AMapLoader from '@amap/amap-jsapi-loader'; import AMapLoader from '@amap/amap-jsapi-loader';
import icon from './icon/jb.png' import icon from './icon/jb.png'
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
securityJsCode: "2933fa5683de5f95c0337aa5ff6a1174", securityJsCode: "b6314ade5a42c3f3ac2284b6d4d89b1f",
}; };
export default { export default {
name: "map-view", name: "map-view",
@ -32,7 +32,7 @@
methods:{ methods:{
initAMap(){ initAMap(){
AMapLoader.load({ AMapLoader.load({
key: "0324b5aea42065e5bbcde850eed8cbef", // WebKey load key: "e49669059fa36494531a82ed982f395c", // WebKey load
plugins: [], // 使'AMap.Scale' plugins: [], // 使'AMap.Scale'
}) })
.then((AMap) => { .then((AMap) => {