mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fixL refresh 404 error
This commit is contained in:
parent
1e7e4c6678
commit
e758ae137b
@ -43,7 +43,7 @@ export default function ServerDetailClient({
|
||||
}
|
||||
};
|
||||
|
||||
const { data: allFallbackData } = useSWRImmutable<ServerApi>(
|
||||
const { data: allFallbackData, isLoading } = useSWRImmutable<ServerApi>(
|
||||
"/api/server",
|
||||
nezhaFetcher,
|
||||
);
|
||||
@ -51,7 +51,7 @@ export default function ServerDetailClient({
|
||||
(item) => item.id === server_id,
|
||||
);
|
||||
|
||||
if (!fallbackData) {
|
||||
if (!fallbackData && !isLoading) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user