隐藏客户端新建任务入口

This commit is contained in:
baiyanyun
2026-07-13 16:03:37 +08:00
parent c8a7bdc0f8
commit d59bd66dcc
2 changed files with 0 additions and 15 deletions

View File

@@ -1063,13 +1063,6 @@ function App() {
return;
}
if (key === "newTask") {
setAiAgentLaunchContext(null);
setSessionsAutoOpen(true);
setActiveTab("sessions");
return;
}
if (key === "aiChat") {
setAiAgentLaunchContext(null);
setActiveTab("sessions");

View File

@@ -12,7 +12,6 @@ import {
InfoCircleOutlined,
LogoutOutlined,
MenuFoldOutlined,
PlusCircleOutlined,
ProjectOutlined,
RobotOutlined,
SafetyOutlined,
@@ -26,7 +25,6 @@ import styles from "../../styles/components/AppSidebar.module.css";
export type NavKey =
| "overview"
| "newTask"
| "automation"
| "aiChat"
| "knowledge"
@@ -83,12 +81,6 @@ interface AppSidebarProps {
const workspaceItems: NavItem[] = [
{ key: "overview", label: "概览", icon: <AppstoreOutlined /> },
{
key: "newTask",
label: "新建任务",
icon: <PlusCircleOutlined />,
badge: "3",
},
{ key: "automation", label: "自动化", icon: <ThunderboltOutlined /> },
{ key: "aiChat", label: "AI 对话", icon: <CommentOutlined /> },
{ key: "knowledge", label: "知识库", icon: <BookOutlined /> },