隐藏客户端新建任务入口

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; return;
} }
if (key === "newTask") {
setAiAgentLaunchContext(null);
setSessionsAutoOpen(true);
setActiveTab("sessions");
return;
}
if (key === "aiChat") { if (key === "aiChat") {
setAiAgentLaunchContext(null); setAiAgentLaunchContext(null);
setActiveTab("sessions"); setActiveTab("sessions");

View File

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