chore: fix style

This commit is contained in:
MystiPanda 2024-01-21 13:46:19 +08:00
parent d3f9d3d033
commit 68ef03377d
3 changed files with 7 additions and 8 deletions

View File

@ -75,7 +75,6 @@ export const TestItem = (props: Props) => {
};
useEffect(() => {
onDelay();
listenTsetEvent();
}, []);
@ -176,7 +175,7 @@ export const TestItem = (props: Props) => {
},
})}
>
{delayManager.formatDelay(delay)}
{`${delayManager.formatDelay(delay)} ms`}
</Widget>
)}
</Box>

View File

@ -27,16 +27,16 @@ export const routers = [
link: "/rules",
ele: RulesPage,
},
{
label: "Label-Test",
link: "/test",
ele: TestPage,
},
{
label: "Label-Logs",
link: "/logs",
ele: LogsPage,
},
{
label: "Label-Test",
link: "/test",
ele: TestPage,
},
{
label: "Label-Settings",
link: "/settings",

View File

@ -112,7 +112,7 @@ class DelayManager {
if (delay <= 0) return "Error";
if (delay > 1e5) return "Error";
if (delay >= 10000) return "Timeout"; // 10s
return `${delay} ms`;
return `${delay}`;
}
formatDelayColor(delay: number) {