diff --git a/src/components/dashboard-page/station-card.vue b/src/components/dashboard-page/station-card.vue index 4b7617d..55daff8 100644 --- a/src/components/dashboard-page/station-card.vue +++ b/src/components/dashboard-page/station-card.vue @@ -8,13 +8,11 @@ import axios from 'axios'; import { NCard, NStatistic, NTag, NGrid, NGi, NButton, NIcon, useThemeVars, NSpace, NTooltip } from 'naive-ui'; import { toRefs, computed } from 'vue'; -interface Props { +const props = defineProps<{ station: Station; stationDevices?: StationDevices; stationAlarmCounts?: StationAlarmCounts; -} - -const props = defineProps(); +}>(); const emit = defineEmits<{ 'open-offline-device-detail-modal': [station: Station]; @@ -131,7 +129,7 @@ const theme = useThemeVars(); 离线设备