fix(front): convert layoutId to string to ensure proper rendering of speed chart items

This commit is contained in:
keven1024
2026-04-05 13:19:49 +08:00
parent cb6b0fae6a
commit 8d3675cfa1

View File

@@ -45,7 +45,7 @@ const handleShowSpeedInfo = () => {
:style="{
height: `${clamp((i.value / Math.max(...(speedChartList?.map((r) => r.value) || [1]))) * 100, 1, 100)}%`,
}"
:layoutId="i.timestamp"
:layoutId="String(i.timestamp)"
v-for="i in speedChartList"
:key="i.timestamp"
:initial="{ x: 10, opacity: 0 }"