fix(home-ui): align signal icon delay states with formatDelay (#6249)

* fix(ui): align signal icon delay states with formatDelay

* docs: changelog.md
This commit is contained in:
AetherWing
2026-02-04 12:11:11 +00:00
committed by GitHub
parent c7f5bc4e0d
commit 6f424ebd2b
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -89,9 +89,13 @@ function getSignalIcon(delay: number): {
text: string;
color: string;
} {
if (delay < 0)
if (delay === -2)
return { icon: <SignalNone />, text: "测试中", color: "text.secondary" };
if (delay === -1)
return { icon: <SignalNone />, text: "未测试", color: "text.secondary" };
if (delay >= 10000)
if (delay > 1e5)
return { icon: <SignalError />, text: "错误", color: "error.main" };
if (delay === 0 || delay >= 10000)
return { icon: <SignalError />, text: "超时", color: "error.main" };
if (delay >= 500)
return { icon: <SignalWeak />, text: "延迟较高", color: "error.main" };