diff --git a/src/packages/components/Charts/MyComponents/AlarmList/index.vue b/src/packages/components/Charts/MyComponents/AlarmList/index.vue index 4f88324..981a6b8 100644 --- a/src/packages/components/Charts/MyComponents/AlarmList/index.vue +++ b/src/packages/components/Charts/MyComponents/AlarmList/index.vue @@ -72,7 +72,7 @@ const isLoading = ref(false) const option = computed(() => props.chartConfig.option) const getStatusColor = (status: string) => { - return props.chartConfig.option.statusColors[status] || '#ffffff' + return (props.chartConfig.option.statusColors as Record)[status] || '#ffffff' } const convertTimestampToDateTime = (timestamp: number | string) => { const date = new Date(timestamp)