fix: 进度条问题
This commit is contained in:
parent
293c1e29c7
commit
719cc3782a
|
|
@ -217,44 +217,8 @@ export const VideoClassificationProgress: React.FC<VideoClassificationProgressPr
|
||||||
{/* 队列控制按钮 */}
|
{/* 队列控制按钮 */}
|
||||||
{typedQueueStats && (
|
{typedQueueStats && (
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
{/* 暂停/恢复按钮 */}
|
|
||||||
<button
|
|
||||||
onClick={handlePauseResume}
|
|
||||||
disabled={isLoading || (typedQueueStats.status !== 'Running' && typedQueueStats.status !== 'Paused')}
|
|
||||||
className={`p-2 rounded-md transition-colors ${isLoading || (typedQueueStats.status !== 'Running' && typedQueueStats.status !== 'Paused')
|
|
||||||
? 'text-gray-400 cursor-not-allowed'
|
|
||||||
: 'text-gray-600 hover:text-gray-900 hover:bg-gray-100'
|
|
||||||
}`}
|
|
||||||
title={
|
|
||||||
typedQueueStats.status === 'Running' ? '暂停队列' :
|
|
||||||
typedQueueStats.status === 'Paused' ? '恢复队列' :
|
|
||||||
'队列未运行'
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{typedQueueStats.status === 'Running' ? (
|
|
||||||
<Pause className="w-4 h-4" />
|
|
||||||
) : (
|
|
||||||
<Play className="w-4 h-4" />
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{/* 停止按钮 */}
|
|
||||||
<button
|
|
||||||
onClick={handleStop}
|
|
||||||
disabled={isLoading || typedQueueStats.status === 'Stopped'}
|
|
||||||
className={`p-2 rounded-md transition-colors ${isLoading || typedQueueStats.status === 'Stopped'
|
|
||||||
? 'text-gray-400 cursor-not-allowed'
|
|
||||||
: 'text-gray-600 hover:text-red-600 hover:bg-red-50'
|
|
||||||
}`}
|
|
||||||
title={typedQueueStats.status === 'Stopped' ? '队列已停止' : '停止队列'}
|
|
||||||
>
|
|
||||||
<Square className="w-4 h-4" />
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{/* 状态指示器 */}
|
|
||||||
<div className="text-xs text-gray-500 ml-2">
|
<div className="text-xs text-gray-500 ml-2">
|
||||||
状态: {typedQueueStats.status}
|
状态: {typedQueueStats.status}
|
||||||
{isLoading && ' (操作中...)'}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue