mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 19:56:50 +08:00
chore: fix style
This commit is contained in:
parent
d3f9d3d033
commit
68ef03377d
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user