From 5ddef63040c2b67f8f375c0e272b880a396f9bc6 Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 9 Apr 2025 13:44:10 +0000 Subject: [PATCH] init --- asset/admin/components_amap.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asset/admin/components_amap.tsx b/asset/admin/components_amap.tsx index 9b9b2c4..e52b91f 100644 --- a/asset/admin/components_amap.tsx +++ b/asset/admin/components_amap.tsx @@ -7,9 +7,9 @@ import { MapMode, MarkerData } from '../share/types.ts'; // 在线地图配置 export const AMAP_ONLINE_CONFIG = { // 高德地图 Web API 密钥 - API_KEY: '75bb5fba220426729ed65da3b2982f25', + API_KEY: window.CONFIG?.MAP_CONFIG?.KEY, // 主JS文件路径 - MAIN_JS: 'https://webapi.amap.com/maps?v=2.0&key=75bb5fba220426729ed65da3b2982f25', + MAIN_JS: 'https://webapi.amap.com/maps?v=2.0&key=' + window.CONFIG?.MAP_CONFIG?.KEY, // 插件列表 PLUGINS: ['AMap.MouseTool', 'AMap.RangingTool', 'AMap.Scale', 'AMap.ToolBar', 'AMap.MarkerCluster'], };