mirror of
https://github.com/imsyy/home.git
synced 2025-05-21 21:50:15 +09:00
Update index.js
This commit is contained in:
parent
b8aea70f76
commit
4a49d338e3
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user