调整ColorStatusBar组件中估算时间的计算逻辑,将每个格子的时间从0.5分钟修改为0.1分钟,以提升时间估算的准确性。
This commit is contained in:
@@ -24,7 +24,7 @@ const ColorStatusBar: React.FC<ColorStatusBarProps> = ({
|
||||
);
|
||||
}
|
||||
|
||||
const estimatedTime = Math.ceil((colorInfo.total - colorInfo.completed) * 0.5); // 假设每个格子0.5分钟
|
||||
const estimatedTime = Math.ceil((colorInfo.total - colorInfo.completed) * 0.1); // 假设每个格子0.5分钟
|
||||
|
||||
return (
|
||||
<div className="h-12 bg-white border-b border-gray-200 px-4 py-2 flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user