From bee72dc7f86d0774d2f48deb7d1728926ede5abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=98=E9=A3=8E?= Date: Mon, 9 Feb 2026 11:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E404=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=A4=84=E7=90=86=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=9C=AA=E5=8C=B9=E9=85=8D=E8=B7=AF=E5=BE=84=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BD=93=E9=AA=8C=E3=80=82=E5=B0=86=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=E8=87=B3NotFoundPage=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E6=8F=90=E5=8D=87=E7=B3=BB=E7=BB=9F=E7=9A=84=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=E6=80=A7=E5=92=8C=E7=94=A8=E6=88=B7=E5=8F=8B=E5=A5=BD?= =?UTF-8?q?=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soul-admin/src/App.tsx | 3 +- .../src/pages/not-found/NotFoundPage.tsx | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 soul-admin/src/pages/not-found/NotFoundPage.tsx diff --git a/soul-admin/src/App.tsx b/soul-admin/src/App.tsx index deb821c3..30a012c4 100644 --- a/soul-admin/src/App.tsx +++ b/soul-admin/src/App.tsx @@ -14,6 +14,7 @@ import { PaymentPage } from './pages/payment/PaymentPage' import { SitePage } from './pages/site/SitePage' import { QRCodesPage } from './pages/qrcodes/QRCodesPage' import { MatchPage } from './pages/match/MatchPage' +import { NotFoundPage } from './pages/not-found/NotFoundPage' function App() { return ( @@ -35,7 +36,7 @@ function App() { } /> } /> - } /> + } /> ) } diff --git a/soul-admin/src/pages/not-found/NotFoundPage.tsx b/soul-admin/src/pages/not-found/NotFoundPage.tsx new file mode 100644 index 00000000..66ff5b3c --- /dev/null +++ b/soul-admin/src/pages/not-found/NotFoundPage.tsx @@ -0,0 +1,29 @@ +import { Link, useLocation } from 'react-router-dom' +import { Home, AlertCircle } from 'lucide-react' +import { Button } from '@/components/ui/button' + +export function NotFoundPage() { + const location = useLocation() + + return ( +
+
+
+ +
+

404

+

页面不存在

+

{location.pathname}

+ +
+
+ ) +}