- 版本详情:关联需求Tab(从需求池添加已采纳需求/移除释放) - 版本详情:调研/产品方案/UI设计Tab(计划CRUD、完成提交成果、耗时统计) - 版本详情:超期校验(结束日期超版本截止需填写原因) - 版本详情:概览统计卡片(加班时长/排名/原因占比) - 数据串联:产品→项目→版本→需求→加班全链路贯通 - 版本管理:规划中版本可删除,删除释放关联需求 - 数据清理:仅保留翻台宝/值班,需求池10条值班待评审需求 - 修复:列表页overflow裁剪菜单问题(4个页面统一修复) - 新增:登录模块、AuthGuard、VersionPlan store Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
606 B
TypeScript
24 lines
606 B
TypeScript
'use client';
|
|
|
|
import { usePathname } from 'next/navigation';
|
|
import { Sidebar } from '@/components/layout/Sidebar';
|
|
import { AuthGuard } from '@/components/AuthGuard';
|
|
|
|
export function LayoutShell({ children }: { children: React.ReactNode }) {
|
|
const pathname = usePathname();
|
|
const isLoginPage = pathname === '/login';
|
|
|
|
return (
|
|
<AuthGuard>
|
|
{isLoginPage ? (
|
|
<>{children}</>
|
|
) : (
|
|
<div className="flex h-screen overflow-hidden">
|
|
<Sidebar />
|
|
<main className="flex-1 overflow-y-auto">{children}</main>
|
|
</div>
|
|
)}
|
|
</AuthGuard>
|
|
);
|
|
}
|