review:【antd】【iot】首页的迁移

This commit is contained in:
YunaiV
2025-11-23 18:51:16 +08:00
parent a32ff4a9c9
commit 42697ec614
9 changed files with 49 additions and 77 deletions

View File

@@ -1,16 +1,7 @@
/**
* IoT 首页数据配置文件
*
* 该文件只包含统计数据接口定义
*/
import type { IotStatisticsApi } from '#/api/iot/statistics';
/** 统计数据接口 - 使用 API 定义的类型 */
export type StatsData = IotStatisticsApi.StatisticsSummary;
/** 默认统计数据 */
export const defaultStatsData: StatsData = {
export const defaultStatsData: IotStatisticsApi.StatisticsSummary = {
productCategoryCount: 0,
productCount: 0,
deviceCount: 0,