Skip to content

Commit

Permalink
- fix(api/qgis)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisGray0626 committed Jul 2, 2024
1 parent 8657071 commit 610fc78
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/api/qgis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export function clearWorkspace() {
* @param files
*/
export function uploadFiles(files: File[]) {
const formData: FormData = {
"file_list": files,
}
let formData = new FormData()
formData.append("file_list", files)

Check failure on line 37 in src/api/qgis.ts

View workflow job for this annotation

GitHub Actions / build (18.x, chrisgray0626/gis-agent-frontend, 0.1)

No overload matches this call.

const config = {
headers: {
'Content-Type': 'multipart/form-data'
Expand All @@ -45,7 +45,8 @@ export function uploadFiles(files: File[]) {
}

// TODO download file
export function downloadFile()
export function downloadFile() {
}

/**
* 执行
Expand Down

0 comments on commit 610fc78

Please sign in to comment.