diff --git a/src/pages/ProcessDetailPage.tsx b/src/pages/ProcessDetailPage.tsx index ba3ae8f..913364b 100644 --- a/src/pages/ProcessDetailPage.tsx +++ b/src/pages/ProcessDetailPage.tsx @@ -1,5 +1,5 @@ import { useParams, Link, useLocation, useNavigate } from 'react-router-dom' -import { motion, AnimatePresence } from 'framer-motion' +import { motion } from 'framer-motion' import { ArrowLeft, ArrowRight, FileText, Wrench, FileOutput, LayoutGrid, Workflow, User, Target, Clock, MapPin, HelpCircle, Cog, Eye, EyeOff } from 'lucide-react' import { getProcessDetail, processes } from '@/data' import { useState, useEffect } from 'react' @@ -227,16 +227,14 @@ export function ProcessDetailPage() { {visible.inputs ? '隐藏' : '显示'} - + {visible.inputs ? ( - + {processDetail.inputDetails?.map((inputDetail: any) => { const hasDetail = inputDetail.detail && inputDetail.detail.length > 0 return ( @@ -261,20 +259,13 @@ export function ProcessDetailPage() { ) })} - + ) : ( - + {processDetail.inputs.length} 项已隐藏 - + )} - + {/* 工具与技术 */} @@ -295,16 +286,14 @@ export function ProcessDetailPage() { {visible.tools ? '隐藏' : '显示'} - + {visible.tools ? ( - + {processDetail.toolDetails?.map((toolDetail: any) => { const hasDetail = toolDetail.detail && toolDetail.detail.length > 0 return ( @@ -329,20 +318,13 @@ export function ProcessDetailPage() { ) })} - + ) : ( - + {processDetail.tools.length} 项已隐藏 - + )} - + {/* 输出 */} @@ -363,16 +345,14 @@ export function ProcessDetailPage() { {visible.outputs ? '隐藏' : '显示'} - + {visible.outputs ? ( - + {processDetail.outputDetails?.map((outputDetail: any) => { const hasDetail = outputDetail.detail && outputDetail.detail.length > 0 return ( @@ -397,20 +377,13 @@ export function ProcessDetailPage() { ) })} - + ) : ( - + {processDetail.outputs.length} 项已隐藏 - + )} - +