feat(layout): 隐藏数据归集和数据清洗菜单项并添加首页路由

- 注释掉数据归集菜单项
- 注释掉数据清洗菜单项
- 注释掉算子市场菜单项
- 注释掉侧边栏中的任务中心弹窗组件
- 添加首页路由配置
- 将根路径重定向改为首页组件渲染
This commit is contained in:
2026-01-19 18:23:38 +08:00
parent 3af0f0b3a1
commit d568de7d45
3 changed files with 27 additions and 26 deletions

View File

@@ -118,7 +118,7 @@ const AsiderAndHeaderLayout = () => {
<div className="p-4 border-t border-gray-200">
{sidebarOpen ? (
<div className="space-y-2">
<Popover
{/* <Popover
forceRender
title={
<div className="flex items-center justify-between gap-2 border-b border-gray-200 pb-2 mb-2">
@@ -137,7 +137,7 @@ const AsiderAndHeaderLayout = () => {
<Button block onClick={() => setTaskCenterVisible(true)}>
任务中心
</Button>
</Popover>
</Popover> */}
<Button
block
onClick={() => {
@@ -149,7 +149,7 @@ const AsiderAndHeaderLayout = () => {
</div>
) : (
<div className="space-y-2">
<div className="relative">
{/* <div className="relative">
<Popover
forceRender
title="任务中心"
@@ -164,7 +164,7 @@ const AsiderAndHeaderLayout = () => {
icon={<ClipboardList className="w-4 h-4" />}
></Button>
</Popover>
</div>
</div> */}
<Button
block
onClick={() => {

View File

@@ -14,13 +14,13 @@ import {
} from "lucide-react";
export const menuItems = [
{
id: "collection",
title: "数据归集",
icon: Database,
description: "创建、导入和管理数据集",
color: "bg-orange-500",
},
// {
// id: "collection",
// title: "数据归集",
// icon: Database,
// description: "创建、导入和管理数据集",
// color: "bg-orange-500",
// },
{
id: "management",
title: "数据管理",
@@ -28,13 +28,13 @@ export const menuItems = [
description: "创建、导入和管理数据集",
color: "bg-blue-500",
},
{
id: "cleansing",
title: "数据清洗",
icon: GitBranch,
description: "数据清洗和预处理",
color: "bg-purple-500",
},
// {
// id: "cleansing",
// title: "数据清洗",
// icon: GitBranch,
// description: "数据清洗和预处理",
// color: "bg-purple-500",
// },
{
id: "annotation",
title: "数据标注",
@@ -69,13 +69,13 @@ export const menuItems = [
// description: "质量分析、性能评估和偏见检测",
// color: "bg-indigo-500",
// },
{
id: "operator-market",
title: "算子市场",
icon: Store,
description: "算子上传与管理",
color: "bg-yellow-500",
},
// {
// id: "operator-market",
// title: "算子市场",
// icon: Store,
// description: "算子上传与管理",
// color: "bg-yellow-500",
// },
];
export const features = [

View File

@@ -43,11 +43,12 @@ import CleansingTemplateDetail from "@/pages/DataCleansing/Detail/TemplateDetail
import SynthFileTask from "@/pages/SynthesisTask/SynthFileTask.tsx";
import EvaluationDetailPage from "@/pages/DataEvaluation/Detail/TaskDetail.tsx";
import SynthDataDetail from "@/pages/SynthesisTask/SynthDataDetail.tsx";
import Home from "@/pages/Home/Home";
const router = createBrowserRouter([
{
path: "/",
loader: () => redirect("/data/management"),
Component: Home,
},
{
path: "/chat",