From 5663e1c6d3a07573d94e1e1b2ed68be2f7e134bb Mon Sep 17 00:00:00 2001 From: admin <572701190@qq.com> Date: Sun, 3 May 2026 01:49:18 +0800 Subject: [PATCH] slow zip packaging progress display --- WebSite/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebSite/src/App.tsx b/WebSite/src/App.tsx index e281756..9f31b0b 100644 --- a/WebSite/src/App.tsx +++ b/WebSite/src/App.tsx @@ -477,12 +477,13 @@ export default function App() { try { const job = await apiRequest(`/api/job?id=${currentJob.id}`) as BackendJob; if (!isActive) return; + const zipProgressStep = target === 'all' ? 0.8 : 4; const displayJob = job.status === 'running' ? { ...job, progress: Math.min( 95, - Math.max(progressFromJob(currentJob, 10) + 8, progressFromJob(job, 10)) + Math.max(progressFromJob(currentJob, 10) + zipProgressStep, progressFromJob(job, 10)) ) } : job;