添加裁剪因素菜单并更新变更记录
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
Home,
|
||||
BookOpen,
|
||||
Layers,
|
||||
Scissors,
|
||||
LayoutGrid,
|
||||
Share2,
|
||||
Settings,
|
||||
@@ -21,6 +22,7 @@ const navItems = [
|
||||
{ path: '/process-practice', label: '过程背诵练习', icon: GraduationCap },
|
||||
{ path: '/knowledge-areas', label: '知识领域', icon: BookOpen },
|
||||
{ path: '/process-groups', label: '过程组', icon: Layers },
|
||||
{ path: '/knowledge-areas-tailoring', label: '裁剪因素', icon: Scissors },
|
||||
{ path: '/process-graph', label: '过程关系图', icon: Share2 },
|
||||
{ path: '/principles', label: '十二项原则', icon: BookMarked },
|
||||
{ path: '/performance-domains', label: '八大绩效域', icon: Gauge },
|
||||
@@ -77,7 +79,7 @@ export function Sidebar() {
|
||||
<ul className="space-y-1">
|
||||
{navItems.map((item) => {
|
||||
const isActive = location.pathname === item.path ||
|
||||
(item.path !== '/' && location.pathname.startsWith(item.path))
|
||||
(item.path !== '/' && location.pathname.startsWith(`${item.path}/`))
|
||||
const Icon = item.icon
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user