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}

+ +
+
+ ) +}