From 4a49d338e3fdd1e8fd3b80ed4a89904b87883494 Mon Sep 17 00:00:00 2001 From: hwxlikemi <159146868+hwxlikemi@users.noreply.github.com> Date: Sat, 25 Jan 2025 12:58:20 +0800 Subject: [PATCH] Update index.js --- src/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.js b/src/api/index.js index 04de016..5e2e15c 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -62,7 +62,7 @@ export const getAdcode = async (key) => { // 获取高德地理天气信息 export const getWeather = async (key, city) => { const res = await fetch( - `https://restapi.amap.com/v3/weather/weatherInfo?key=cbea1902cff38bf4d765c9931017a230&city=440783`, + `https://restapi.amap.com/v3/weather/weatherInfo?key=cbea1902cff38bf4d765c9931017a230&city=${city}`, ); return await res.json(); };