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

@@ -2,6 +2,7 @@ import Link from "next/link";
import { BookOpen, Plus } from "lucide-react";
import { AppShell } from "@/components/AppShell";
import { BackendDownNotice } from "@/components/BackendDownNotice";
import { ProjectLibrary } from "@/components/projects/ProjectLibrary";
import { EmptyState } from "@/components/ui/EmptyState";
import { PageHeader } from "@/components/ui/PageHeader";
@@ -38,9 +39,7 @@ export default async function DashboardPage() {
/>
{loadError ? (
<p className="rounded border border-conflict bg-panel p-6 text-conflict">
API
</p>
<BackendDownNotice />
) : projects.length === 0 ? (
<EmptyState
icon={BookOpen}