diff --git a/src/app/(protected)/unauthorized/page.tsx b/src/app/(protected)/unauthorized/page.tsx new file mode 100644 index 0000000..52b0671 --- /dev/null +++ b/src/app/(protected)/unauthorized/page.tsx @@ -0,0 +1,28 @@ +'use client' + +import { Button } from "@/components/ui/button"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { redirect } from "next/navigation"; + + +export default function ForbiddenPage() { + const handleGoBack = () => { + redirect("/") + }; + + return ( +
+ + + 403 + + +

你无权访问该页面

+ +
+
+
+ ); +}