diff --git a/web2/src/components/layout/Sidebar.tsx b/web2/src/components/layout/Sidebar.tsx
index 8fc450c..e830f9f 100644
--- a/web2/src/components/layout/Sidebar.tsx
+++ b/web2/src/components/layout/Sidebar.tsx
@@ -27,22 +27,35 @@ export function Sidebar() {
{group}
{items.map((item) => (
-
- cn(
- 'flex items-center gap-3 px-5 py-2 text-sm transition-colors',
- isActive
- ? 'bg-primary/10 text-primary font-medium border-r-2 border-primary'
- : 'text-muted-foreground hover:bg-muted hover:text-foreground',
- )
- }
- >
-
- {item.label}
-
+ item.external ? (
+
+
+ {item.label}
+
+ ) : (
+
+ cn(
+ 'flex items-center gap-3 px-5 py-2 text-sm transition-colors',
+ isActive
+ ? 'bg-primary/10 text-primary font-medium border-r-2 border-primary'
+ : 'text-muted-foreground hover:bg-muted hover:text-foreground',
+ )
+ }
+ >
+
+ {item.label}
+
+ )
))}
))}
diff --git a/web2/src/lib/nav-config.ts b/web2/src/lib/nav-config.ts
index e65197d..20b5dcf 100644
--- a/web2/src/lib/nav-config.ts
+++ b/web2/src/lib/nav-config.ts
@@ -7,7 +7,7 @@ import type { ComponentType } from 'react'
import {
LayoutDashboard, ClipboardList, Scale, TrendingUp, Heart, Users,
BookOpen, History, User, Settings, ShieldCheck, FileText,
- BarChart3, Cpu, MessageSquare, UserCog, Briefcase, Sparkles,
+ BarChart3, Cpu, MessageSquare, UserCog, Briefcase, Sparkles, Compass,
} from 'lucide-react'
export interface NavItem {
@@ -23,6 +23,8 @@ export interface NavItem {
tab?: boolean
/** 底部 Tab 显示标签(不填则用 label) */
tabLabel?: string
+ /** 外部链接(新窗口打开,不走路由) */
+ external?: boolean
}
/** 用户端导航(老板) */
@@ -43,6 +45,7 @@ export const USER_NAV: NavItem[] = [
{ path: '/knowledge', label: '知识库', icon: BookOpen, group: '我的资源' },
{ path: '/history', label: '对话历史', icon: History, group: '我的资源' },
{ path: '/profile', label: '我的画像', icon: User, group: '我的资源' },
+ { path: 'https://bz9ai.top', label: '周易议事', icon: Compass, group: '我的资源', external: true },
// 系统
{ path: '/settings', label: '设置', icon: Settings, group: '系统' },
]