Add files via upload

This commit is contained in:
公明
2026-07-14 15:11:50 +08:00
committed by GitHub
parent a496bd7aee
commit 2924d6636c
8 changed files with 44 additions and 44 deletions
+1 -1
View File
@@ -76,7 +76,7 @@
}
async function createInspection(apiFetch, file) {
if (!file) throw new WorkflowPackageError('WFPKG_FILE_REQUIRED', '请选择本地图编排包');
if (!file) throw new WorkflowPackageError('WFPKG_FILE_REQUIRED', '请选择本地工作流包');
const body = new FormData();
body.append('file', file, file.name || 'workflow.csapkg.zip');
const response = await apiFetch('/api/workflow-package-inspections', { method: 'POST', body: body });