From 6b787d478d59742f4ca73c7fd759f3cfb667a122 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Tue, 6 Jan 2026 10:50:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(bi):=20=E6=B7=BB=E5=8A=A0=E5=A4=A9?= =?UTF-8?q?=E6=B0=94=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 集成百度地图天气API获取功能 - 创建getWeather请求方法 - 配置天气数据获取的API端点 - 设置区域ID为1300的数据请求 - 添加API密钥配置 - 实现数据类型为all的完整天气信息获取 --- src/api/bi/index.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/api/bi/index.js diff --git a/src/api/bi/index.js b/src/api/bi/index.js new file mode 100644 index 0000000..ea3d85c --- /dev/null +++ b/src/api/bi/index.js @@ -0,0 +1,6 @@ +import { declareRequest } from '@cqsjjb/jjb-dva-runtime'; + +export const getWeather = declareRequest( + 'biLoading', + 'Get > https://api.map.baidu.com/weather/v1/?district_id=130300&data_type=all&ak=dIqOi34IlTg5FkNck1vqoBpLhPAj36S1', +); \ No newline at end of file