docs: 更新 AGENTS.md 补充 hooks 和 components 目录

This commit is contained in:
2026-05-15 19:46:59 +08:00
parent 19fcfb38c8
commit b1631b9a86

View File

@@ -34,6 +34,10 @@ src/
layouts/ layouts/
RootLayout.tsx # 根布局Header + Sider + Content RootLayout.tsx # 根布局Header + Sider + Content
SystemLayout.tsx # 系统配置布局(<Outlet />,作为 /system 父路由容器) SystemLayout.tsx # 系统配置布局(<Outlet />,作为 /system 父路由容器)
components/
AuthGuard.tsx # 路由守卫(未登录跳转登录页)
hooks/
useAppInit.ts # 应用初始化 hook刷新页面时重新获取用户信息
api/ api/
auth.ts # 登录接口 auth.ts # 登录接口
system/ system/