fix: Исправлен расчёт прогресса загрузки документов
- Было: (currentDocNumber / totalDocs) * 100 Документ 2/2 показывал 100% ДО загрузки - Стало: ((currentDocNumber - 1) / totalDocs) * 100 Документ 1/2: 0% (до загрузки) → 50% (после) Документ 2/2: 50% (до загрузки) → 100% (после)
This commit is contained in:
@@ -215,11 +215,11 @@ const StepDocumentUpload: React.FC<Props> = ({
|
||||
Документ {currentDocNumber} из {totalDocs}
|
||||
</span>
|
||||
<span style={{ fontSize: 12, color: '#666' }}>
|
||||
{Math.round((currentDocNumber / totalDocs) * 100)}% завершено
|
||||
{Math.round(((currentDocNumber - 1) / totalDocs) * 100)}% завершено
|
||||
</span>
|
||||
</div>
|
||||
<Progress
|
||||
percent={Math.round((currentDocNumber / totalDocs) * 100)}
|
||||
percent={Math.round(((currentDocNumber - 1) / totalDocs) * 100)}
|
||||
showInfo={false}
|
||||
strokeColor="#1890ff"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user