+
diff --git a/web/client/src/components/layout/Sidebar.tsx b/web/client/src/components/layout/Sidebar.tsx
index 88c2bf9..a1e7581 100644
--- a/web/client/src/components/layout/Sidebar.tsx
+++ b/web/client/src/components/layout/Sidebar.tsx
@@ -1,34 +1,33 @@
+import { NavLink } from 'react-router-dom';
import { MessageCircle, FolderOpen, Image, Settings } from 'lucide-react';
-import { useAppStore } from '@/store';
-import type { NavView } from '@/types';
import { cn } from '@/lib/utils';
-const navItems: { id: NavView; icon: typeof MessageCircle; label: string }[] = [
- { id: 'chat', icon: MessageCircle, label: '对话' },
- { id: 'accounts', icon: FolderOpen, label: '账户' },
- { id: 'assets', icon: Image, label: '资产' },
- { id: 'config', icon: Settings, label: '设置' },
+const navItems = [
+ { to: '/chat', icon: MessageCircle, label: '对话' },
+ { to: '/accounts', icon: FolderOpen, label: '账户' },
+ { to: '/assets', icon: Image, label: '资产' },
+ { to: '/settings', icon: Settings, label: '设置' },
];
export function Sidebar() {
- const { activeView, setActiveView } = useAppStore();
-
return (
-
);
diff --git a/web/client/src/components/prompts/PromptEditor.tsx b/web/client/src/components/prompts/PromptEditor.tsx
index a607870..d381862 100644
--- a/web/client/src/components/prompts/PromptEditor.tsx
+++ b/web/client/src/components/prompts/PromptEditor.tsx
@@ -35,7 +35,7 @@ export function PromptEditor() {