fix(A1): 清除Sidebar 4个死链路由,补回审核台导航
死链(全不存在的路由): /tasks /images /tasks/build /tasks/list 真实存在却漏进导航的 /review(组长审核台)补回,限supervisor+admin。 选文案/选图片是任务流程内步骤(经/tasks/[id]/text|images,需task id), 不做顶层导航。tsc全量通过。 同步: 总核销表新增P3前端打通+飞轮(九文档审核5桶结论)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -16,13 +16,12 @@ interface NavItem {
|
||||
icon: string;
|
||||
}
|
||||
|
||||
// 仅保留真实存在的路由(app/目录)。选文案/选图片是任务流程内步骤
|
||||
// (经 /tasks/[id]/text|images 进入,需 task id,不做顶层导航)。
|
||||
const NAV_ITEMS: NavItem[] = [
|
||||
{ label: '工作台', href: '/dashboard', icon: '🏠' },
|
||||
{ label: '开新任务', href: '/tasks/new', icon: '✏️' },
|
||||
{ label: '选择文案', href: '/tasks', icon: '📝' },
|
||||
{ label: '选择图片', href: '/images', icon: '🖼️' },
|
||||
{ label: '建立任务', href: '/tasks/build', icon: '⚙️' },
|
||||
{ label: '任务列表', href: '/tasks/list', icon: '📋' },
|
||||
{ label: '审核台', href: '/review', roles: ['supervisor', 'admin'], icon: '✅' },
|
||||
{ label: '历史归档', href: '/history', icon: '🗂️' },
|
||||
{ label: '配置中心', href: '/config', roles: ['admin'], icon: '⚙️' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user