diff --git a/src/components/layout/ModuleSwitcher.tsx b/src/components/layout/ModuleSwitcher.tsx index 52113df5..18122be8 100644 --- a/src/components/layout/ModuleSwitcher.tsx +++ b/src/components/layout/ModuleSwitcher.tsx @@ -1,4 +1,4 @@ -import { ArrowLeft } from 'lucide-react'; +import { Home } from 'lucide-react'; import { useLocation, useNavigate } from 'react-router-dom'; import { cn } from '@/lib/utils'; import { AI_MODULE_SELECTION_PATH, aiModules, getAiModuleForPath } from '@/lib/ai-modules'; @@ -34,10 +34,10 @@ export function ModuleSwitcher({ sidebarCollapsed, compact = false, toolbar = fa agentReturn && 'rounded-full bg-background/70 text-brand', )} > - {!sidebarCollapsed && !iconOnly ? {activeModuleLabel} : null} diff --git a/src/pages/CloudAgents/DraftEditor.tsx b/src/pages/CloudAgents/DraftEditor.tsx index 64dccb6b..d77e73c3 100644 --- a/src/pages/CloudAgents/DraftEditor.tsx +++ b/src/pages/CloudAgents/DraftEditor.tsx @@ -125,7 +125,7 @@ export function DraftEditor({ initial, recent, onBack, onSaved, startingPrompt, return - dirty || hasPending ? setLeaving(true) : onBack()}> {tab === 'chat' ? <> diff --git a/src/pages/Plugins/index.tsx b/src/pages/Plugins/index.tsx index 3e52b2c7..d51e601a 100644 --- a/src/pages/Plugins/index.tsx +++ b/src/pages/Plugins/index.tsx @@ -213,7 +213,7 @@ export function PluginsView(props: PluginsViewProps) { size="icon" data-testid="project-plugins-back-button" aria-label="返回项目配置" - title="返回项目配置" + title="返回上一级" onClick={props.onBackToProjectSettings} className="mt-0.5 h-8 w-8 shrink-0 text-muted-foreground hover:bg-surface-subtle hover:text-foreground" > diff --git a/src/pages/ProjectConfiguration/index.tsx b/src/pages/ProjectConfiguration/index.tsx index 8e5d07b6..2d50ff48 100644 --- a/src/pages/ProjectConfiguration/index.tsx +++ b/src/pages/ProjectConfiguration/index.tsx @@ -34,7 +34,7 @@ function ResourceCard({ id, icon, title, subtitle, onClick }: { id: string; icon } function DrawerFrame({ title, desc, onClose, children, closeLabel = '关闭', closeIcon = 'close' }: { title: string; desc: string; onClose: () => void; children: React.ReactNode; closeLabel?: string; closeIcon?: 'close' | 'back' }) { - const closeButton = {closeIcon === 'back' ? : }; + const closeButton = {closeIcon === 'back' ? : }; return {title}{desc}{closeIcon === 'back' ? closeButton : {closeButton}}{children}; } @@ -171,7 +171,7 @@ export function ProjectConfiguration() { return - + 项目配置 diff --git a/src/pages/Settings/index.tsx b/src/pages/Settings/index.tsx index a7e980fd..d346877c 100644 --- a/src/pages/Settings/index.tsx +++ b/src/pages/Settings/index.tsx @@ -257,7 +257,7 @@ export function Settings() { - { if (!canLeaveCurrentPage()) { toast.info('请先保存或还原当前修改,再返回。'); return; } navigate(getSettingsReturnPath(location.state));