fix: frontend build after bump version for tauri-plugin-mihomo

This commit is contained in:
Tunglies
2026-06-10 20:01:19 +08:00
parent 358dff9c62
commit e1380b9bab
6 changed files with 13 additions and 9 deletions
+3 -1
View File
@@ -3,8 +3,8 @@ import {
ArrowUpwardRounded,
MemoryRounded,
} from '@mui/icons-material'
import { Box, Typography } from '@mui/material'
import type { BoxProps, SvgIconProps, TypographyProps } from '@mui/material'
import { Box, Typography } from '@mui/material'
import { useEffect, useRef } from 'react'
import { useTranslation } from 'react-i18next'
@@ -41,6 +41,8 @@ export const LayoutTraffic = () => {
trafficRef.current.appendData({
up: traffic?.up || 0,
down: traffic?.down || 0,
upTotal: traffic?.upTotal || 0,
downTotal: traffic?.downTotal || 0,
})
}
}, [traffic])
+1 -1
View File
@@ -16,7 +16,7 @@ const sampleIntervalMs = 1000
const frameIntervalMs = 1000 / 15
const animationDurationMs = sampleIntervalMs
const zeroTraffic: Traffic = { up: 0, down: 0 }
const zeroTraffic: Traffic = { up: 0, down: 0, upTotal: 0, downTotal: 0 }
const createDefaultList = () =>
Array.from({ length: maxPoint + 2 }, () => ({ ...zeroTraffic }))