diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index 0bb85bf..80f3461 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -10,7 +10,7 @@ import { MediaViewer } from "./work-flow/media-viewer"; import { ThumbnailGrid } from "./work-flow/thumbnail-grid"; import { useWorkflowData } from "./work-flow/use-workflow-data"; import { usePlaybackControls } from "./work-flow/use-playback-controls"; -import { AlertCircle, RefreshCw, Pause, Play } from "lucide-react"; +import { AlertCircle, RefreshCw, Pause, Play, ChevronLast } from "lucide-react"; import { motion } from "framer-motion"; import { GlassIconButton } from '@/components/ui/glass-icon-button'; @@ -42,6 +42,7 @@ export default function WorkFlow() { setCurrentSketchIndex, retryLoadData, isPauseWorkFlow, + mode, setIsPauseWorkFlow, } = useWorkflowData(); @@ -214,14 +215,26 @@ export default function WorkFlow() { {/* 暂停/播放按钮 */} -
- setIsPauseWorkFlow(!isPauseWorkFlow)} - /> -
+ { + currentStep !== '6' && ( +
+ setIsPauseWorkFlow(!isPauseWorkFlow)} + /> + { mode !== 'auto' && ( + + )} +
+ ) + } + {/* AI 建议栏 */} diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 906a3c8..e7df22e 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -75,6 +75,7 @@ export function useWorkflowData() { const [dataLoadError, setDataLoadError] = useState(null); const [needStreamData, setNeedStreamData] = useState(false); const [isPauseWorkFlow, setIsPauseWorkFlow] = useState(false); + const [mode, setMode] = useState<'auto' | 'manual'>('manual'); const dispatch = useAppDispatch(); const { sketchCount, videoCount } = useAppSelector((state) => state.workflow); @@ -576,6 +577,7 @@ export function useWorkflowData() { retryLoadData, handleManualPlay, isPauseWorkFlow, + mode, setIsPauseWorkFlow, }; } \ No newline at end of file