fix: loading

This commit is contained in:
hamster1963 2024-11-24 03:09:34 +08:00
parent aae837c110
commit 56d6305096
2 changed files with 2 additions and 6 deletions

View File

@ -62,9 +62,7 @@ export default function ServerDetailChart() {
// 检查连接状态
if (readyState !== 1) {
return (
<div className="flex flex-col items-center justify-center">
<p className="font-semibold text-sm">connecting...</p>
</div>
<ServerDetailChartLoading />
);
}

View File

@ -19,9 +19,7 @@ export default function ServerDetailOverview() {
// 检查连接状态
if (readyState !== 1) {
return (
<div className="flex flex-col items-center justify-center">
<p className="font-semibold text-sm">connecting...</p>
</div>
<ServerDetailLoading />
);
}