From a9e2b3edd2f06b04e7c3ffbf34016ebe48fa46ba Mon Sep 17 00:00:00 2001 From: Dioxide <604834022@qq.com> Date: Thu, 19 Jun 2025 15:35:33 +0800 Subject: [PATCH] Create the unauthorized page --- src/app/(protected)/unauthorized/page.tsx | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/app/(protected)/unauthorized/page.tsx 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 ( +
你无权访问该页面
+ +