隐藏客户端新建任务入口
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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 /> },
|
||||||
|
|||||||
Reference in New Issue
Block a user