diff --git a/frontend/src/ui/App.tsx b/frontend/src/ui/App.tsx index 45b944e..17f2c5d 100644 --- a/frontend/src/ui/App.tsx +++ b/frontend/src/ui/App.tsx @@ -2,10 +2,11 @@ import { Loader2 } from "lucide-react"; import { useEffect, useState } from "react"; -import { openHome, readRoute, type AppRoute } from "@/application/route"; +import { readRoute, type AppRoute } from "@/application/route"; import { BrandMark } from "@/ui/components/BrandMark"; import { CanvasWorkspace } from "@/ui/pages/CanvasWorkspace"; import { HomePage } from "@/ui/pages/HomePage"; +import { NotFoundPage } from "@/ui/pages/NotFoundPage"; import { ProjectsRoutePage } from "@/ui/pages/ProjectsRoutePage"; import { useAuth } from "@/ui/auth/AuthProvider"; @@ -45,127 +46,6 @@ export function App() { return ; } -function NotFoundPage() { - const handleHome = () => { - openHome(); - }; - - return ( -
-
- -

404:页面未找到!

-

我们到处都找过了,但找不到您要找的页面。

- -
-
- ); -} - -function NotFoundMark() { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -} - function ProjectAuthPreview() { return (