fix(web): 后端不可用统一用 BackendDownNotice 替代 404/手搓提示

This commit is contained in:
Yaojia Wang
2026-06-29 16:52:43 +02:00
parent f8cabc92e6
commit 47eb42f274
6 changed files with 52 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
import { notFound } from "next/navigation";
import { BackendDownNotice } from "@/components/BackendDownNotice";
import { CodexPage } from "@/components/codex/CodexPage";
import {
fetchCharacters,
@@ -37,6 +36,6 @@ export default async function CodexRoutePage({
/>
);
} catch {
notFound();
return <BackendDownNotice className="m-6" />;
}
}