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

View File

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

View File

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