feat(ai-web): 完成执行任务的创建(提交漏的文件)

This commit is contained in:
v-zhangjc9
2025-07-05 14:48:53 +08:00
parent 64ef5514b4
commit 051b3dbad2
5 changed files with 282 additions and 23 deletions

View File

@@ -1,6 +1,41 @@
import {amisRender, commonInfo} from '../util/amis.tsx'
function Test() {
return (
<div>Test</div>
<div>
{amisRender(
{
debug: commonInfo.debug,
type: 'form',
canAccessSuperData: false,
actions: [
{
type: 'reset',
label: '重置',
},
{
type: 'submit',
label: '提交',
},
],
body: [
{
type: 'input-file',
required: true,
name: 'files',
label: '数据文件',
autoUpload: false,
drag: true,
multiple: true,
accept: '*',
maxSize: 104857600,
receiver: `${commonInfo.baseAiUrl}/upload`,
useChunk: false,
},
],
},
)}
</div>
)
}