From a795aa13bf41bb61e3c72fd93170aaf39e5d5500 Mon Sep 17 00:00:00 2001 From: admin <572701190@qq.com> Date: Sun, 3 May 2026 01:33:18 +0800 Subject: [PATCH] zip deformation outputs on download --- WebSite/src/App.tsx | 16 ++--- web_backend.py | 146 +++++++++++++++++++++----------------------- 2 files changed, 78 insertions(+), 84 deletions(-) diff --git a/WebSite/src/App.tsx b/WebSite/src/App.tsx index ef8b60a..f015590 100644 --- a/WebSite/src/App.tsx +++ b/WebSite/src/App.tsx @@ -295,6 +295,9 @@ export default function App() { }; const fileUrl = (path?: string) => path ? `${API_BASE}/api/file?path=${encodeURIComponent(path)}` : ''; + const deformationDownloadUrl = (target: string) => deformationJob?.id + ? `${API_BASE}/api/deformation/download?job=${encodeURIComponent(deformationJob.id)}&target=${encodeURIComponent(target)}` + : ''; const clearDeformationTask = () => { setDeformationJob(null); @@ -829,10 +832,10 @@ export default function App() {
{deformationJob?.error &&{deformationJob.error}
} - {deformationJob?.status === 'completed' && deformationJob.result?.zip?.path && ( + {deformationJob?.status === 'completed' && deformationJob.result?.outputs && (