Skip to content

Commit fca9bc6

Browse files
author
Moyee
authored
fix: file import (#33)
1 parent 792cd99 commit fca9bc6

File tree

1 file changed

+4
-0
lines changed
  • client/packages/app/client/src/components/@@plugins/src/components/studio/tugraph/domain-core/graph-construct/file-uploader

1 file changed

+4
-0
lines changed

client/packages/app/client/src/components/@@plugins/src/components/studio/tugraph/domain-core/graph-construct/file-uploader/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ export const FileUploader = (props: FileUploaderProps) => {
103103
name: 'file',
104104
multiple: true,
105105
accept: '.csv',
106+
customRequest(options) {
107+
// @ts-ignore
108+
options.onSuccess(options.filename)
109+
},
106110
onChange(info) {
107111
const { file } = info;
108112
handleFileFormate(file);

0 commit comments

Comments
 (0)