Skip to content

Commit

Permalink
fix: build错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Apr 9, 2024
1 parent 9c6191a commit ae37613
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ui/src/api/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ const getAllDocument: (dataset_id: string, loading?: Ref<boolean>) => Promise<Re
]
}
*/
const postDocument: (dataset_id: string, data: any) => Promise<Result<any>> = (
dataset_id,
data
) => {
return post(`${prefix}/${dataset_id}/document/_bach`, data)
const postDocument: (
dataset_id: string,
data: any,
loading?: Ref<boolean>
) => Promise<Result<any>> = (dataset_id, data, loading) => {
return post(`${prefix}/${dataset_id}/document/_bach`, data, {}, loading)
}

/**
Expand Down

0 comments on commit ae37613

Please sign in to comment.