Ver Fonte

refix_amap_key

gmXian há 5 meses atrás
pai
commit
8c111b7fc3

+ 2 - 3
code/chapter13/helloagents-trip-planner/README.md

@@ -110,9 +110,8 @@ npm install
 
 3. 配置环境变量
 ```bash
-# 创建.env文件,配置高德地图Web API Key和Web端JS API Key
-echo "VITE_AMAP_WEB_KEY=your_amap_web_key" > .env
-echo "VITE_AMAP_WEB_JS_KEY=your_amap_web_js_key" > .env
+# 创建.env文件, 填入高德地图Web API Key 和 Web端JS API Key
+cp .env.example .env
 ```
 
 4. 启动开发服务器

+ 3 - 1
code/chapter13/helloagents-trip-planner/frontend/.env.example

@@ -2,4 +2,6 @@
 VITE_API_BASE_URL=http://localhost:8000
 
 # 高德地图Web API Key
-VITE_AMAP_WEB_KEY=
+VITE_AMAP_WEB_KEY=your_amap_web_api_key_here
+# 高德地图Web端JS API Key
+VITE_AMAP_WEB_JS_KEY=your_amap_web_js_key_here