隐藏客户端新建任务入口
This commit is contained in:
@@ -1063,13 +1063,6 @@ function App() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (key === "newTask") {
|
||||
setAiAgentLaunchContext(null);
|
||||
setSessionsAutoOpen(true);
|
||||
setActiveTab("sessions");
|
||||
return;
|
||||
}
|
||||
|
||||
if (key === "aiChat") {
|
||||
setAiAgentLaunchContext(null);
|
||||
setActiveTab("sessions");
|
||||
|
||||
@@ -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 /> },
|
||||
|
||||
Reference in New Issue
Block a user