Hair Keeper v1.0.0:一个高度集成、深度定制、约定优于配置的全栈Web应用模板,旨在保持灵活性的同时提供一套基于成熟架构的开发底座,自带身份认证、权限控制、丰富前端组件、文件上传、后台任务、智能体开发等丰富功能,提供AI开发辅助,免于纠结功能如何实现,可快速上手专注于业务逻辑

This commit is contained in:
2025-11-13 15:24:54 +08:00
commit 42be39b343
249 changed files with 38843 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
'use client'
import React from 'react'
import { Button } from '@/components/ui/button'
import { signOut } from 'next-auth/react'
import { useRouter } from 'next/navigation'
export default function ForbiddenPage() {
const router = useRouter()
return (
<div className="flex flex-col items-center justify-center h-full">
<h1 className="text-3xl font-bold mb-4">403 </h1>
<p className="mb-6">访</p>
<Button
onClick={async() => {
// 重定向到登录页
await signOut({ redirect: false })
router.push('/login')
}}
className="px-4 py-2 bg-primary text-white rounded"
>
</Button>
</div>
)
}