style(导航): 隐藏流程总览图页面入口
- App.tsx 移除 /process-roadmap 路由及组件导入 - 首页功能入口卡片移除"流程总览图" - 侧边栏导航移除"流程总览图"链接 - ProcessDetailPage 移除"返回总览图"按钮及相关逻辑 via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { motion } from 'framer-motion'
|
||||
import { BookOpen, Layers, LayoutGrid, Workflow, ArrowRight } from 'lucide-react'
|
||||
import { BookOpen, Layers, LayoutGrid, ArrowRight } from 'lucide-react'
|
||||
import { stats } from '@/data'
|
||||
|
||||
const features = [
|
||||
@@ -12,14 +12,6 @@ const features = [
|
||||
color: 'from-emerald-500 to-teal-500',
|
||||
count: stats.processCount,
|
||||
},
|
||||
{
|
||||
icon: Workflow,
|
||||
title: '流程总览图',
|
||||
description: '五组十域可交互SVG流程图,支持模块点击跳转',
|
||||
link: '/process-roadmap',
|
||||
color: 'from-orange-500 to-amber-500',
|
||||
count: null,
|
||||
},
|
||||
{
|
||||
icon: BookOpen,
|
||||
title: '知识领域',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useParams, Link, useLocation, useNavigate } from 'react-router-dom'
|
||||
import { motion } from 'framer-motion'
|
||||
import { ArrowLeft, ArrowRight, FileText, Wrench, FileOutput, LayoutGrid, Workflow, Eye, EyeOff, Info } from 'lucide-react'
|
||||
import { ArrowLeft, ArrowRight, FileText, Wrench, FileOutput, LayoutGrid, Eye, EyeOff, Info } from 'lucide-react'
|
||||
import { getProcessDetail, processes } from '@/data'
|
||||
import { useState, useEffect } from 'react'
|
||||
|
||||
@@ -53,7 +53,6 @@ export function ProcessDetailPage() {
|
||||
}
|
||||
|
||||
const fromMatrix = location.state?.from === 'matrix'
|
||||
const fromRoadmap = location.state?.from === 'roadmap'
|
||||
|
||||
if (!processDetail) {
|
||||
return (
|
||||
@@ -87,15 +86,6 @@ export function ProcessDetailPage() {
|
||||
返回矩阵
|
||||
</button>
|
||||
)}
|
||||
{fromRoadmap && (
|
||||
<button
|
||||
onClick={() => navigate('/process-roadmap')}
|
||||
className="flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-amber-50 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-amber-900/50 transition-colors font-medium"
|
||||
>
|
||||
<Workflow size={14} />
|
||||
返回总览图
|
||||
</button>
|
||||
)}
|
||||
<nav className="flex items-center gap-1.5 text-gray-500 dark:text-gray-400">
|
||||
<Link to="/knowledge-areas" className="hover:text-indigo-600 dark:hover:text-indigo-400">知识领域</Link>
|
||||
<span>/</span>
|
||||
|
||||
Reference in New Issue
Block a user