2026-05-21-00-43-44 修复ZIP STL导入反馈

This commit is contained in:
2026-05-21 00:54:23 +08:00
parent 14c8eb153d
commit b07b04adeb
6 changed files with 222 additions and 9 deletions

View File

@@ -2595,6 +2595,12 @@ async function startServer() {
writeState(state);
res.json(project);
} catch (error) {
console.error('[import-assets] failed', {
projectId: req.params.projectId,
kind,
fileCount: multerFiles.length + legacyUploadedFiles.length,
message: error instanceof Error ? error.message : error,
});
res.status(422).json({ message: error instanceof Error ? error.message : '项目资产导入失败' });
} finally {
cleanupUploadedTempFiles(multerFiles);