diff --git a/apps/web-antd/src/views/iot/home/chart-options.ts b/apps/web-antd/src/views/iot/home/chart-options.ts index b581afcdb..902181505 100644 --- a/apps/web-antd/src/views/iot/home/chart-options.ts +++ b/apps/web-antd/src/views/iot/home/chart-options.ts @@ -1,6 +1,4 @@ -/** - * 消息趋势图表配置 - */ +/** 消息趋势图表配置 */ export function getMessageTrendChartOptions( times: string[], upstreamData: number[], diff --git a/apps/web-antd/src/views/iot/home/data.ts b/apps/web-antd/src/views/iot/home/data.ts index 7b00cb196..562490f34 100644 --- a/apps/web-antd/src/views/iot/home/data.ts +++ b/apps/web-antd/src/views/iot/home/data.ts @@ -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, diff --git a/apps/web-antd/src/views/iot/home/index.vue b/apps/web-antd/src/views/iot/home/index.vue index 5ceacbde6..e2d7723f6 100644 --- a/apps/web-antd/src/views/iot/home/index.vue +++ b/apps/web-antd/src/views/iot/home/index.vue @@ -1,12 +1,12 @@