fix: bug
This commit is contained in:
parent
d9d12a34d1
commit
ba78317d02
@ -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<string, string>)[status] || '#ffffff'
|
||||
}
|
||||
const convertTimestampToDateTime = (timestamp: number | string) => {
|
||||
const date = new Date(timestamp)
|
||||
|
Loading…
Reference in New Issue
Block a user