review:【antd】【iot】首页统计
This commit is contained in:
@@ -3,9 +3,7 @@ import { Page } from '@vben/common-ui';
|
||||
|
||||
import { Col, Row } from 'ant-design-vue';
|
||||
|
||||
// 导入业务逻辑
|
||||
import { useIotHome } from './data';
|
||||
// 导入组件
|
||||
import ComparisonCard from './modules/comparison-card.vue';
|
||||
import DeviceCountCard from './modules/device-count-card.vue';
|
||||
import DeviceStateCountCard from './modules/device-state-count-card.vue';
|
||||
@@ -13,7 +11,7 @@ import MessageTrendCard from './modules/message-trend-card.vue';
|
||||
|
||||
defineOptions({ name: 'IoTHome' });
|
||||
|
||||
// 使用业务逻辑 Hook
|
||||
// TODO @haohao:相关的方法,拿到 index.vue 里,data.ts 只放 schema;
|
||||
const { loading, statsData } = useIotHome();
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user