调整暂存帮助部分结构 & 简化获取当前用户IP代码

This commit is contained in:
Eamon-meng
2025-12-04 15:52:21 +08:00
parent a1c80ba588
commit aa2ce853b8
14 changed files with 63 additions and 282 deletions

View File

@@ -0,0 +1,24 @@
import BreadCrumb from '@/components/bread-crumb'
import Wrap from '@/components/wrap'
import {ReactNode} from 'react'
import Sidebar from './sidebar'
export default function HelpLayout(props: {
children: ReactNode
}) {
return (
<main className="mt-20 flex flex-col gap-4">
<Wrap className="flex flex-col py-8 gap-8">
<BreadCrumb items={[
{label: '帮助中心', href: '/help'},
]}/>
<div className="flex gap-6">
<Sidebar/>
<div className="flex-1 bg-white border rounded p-6 min-h-[420px]">
{props.children}
</div>
</div>
</Wrap>
</main>
)
}