Skip to content

Commit b132bfb

Browse files
committed
refactor: refactor del file resource logic
1 parent 7728d69 commit b132bfb

7 files changed

Lines changed: 644 additions & 637 deletions

File tree

data-agent-frontend/src/services/fileUpload.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
import axios from 'axios';
17-
import {ApiResponse} from "@/services/common.ts";
17+
import { ApiResponse } from '@/services/common.ts';
1818

1919
/**
2020
* 业务API服务
@@ -40,8 +40,8 @@ export const fileUploadApi = {
4040
try {
4141
const response = await axios.post<FileUploadResult>(url, formData, {
4242
headers: {
43-
'Content-Type': 'multipart/form-data'
44-
}
43+
'Content-Type': 'multipart/form-data',
44+
},
4545
});
4646
if (response.data.success) {
4747
return response.data.data ?? null;

0 commit comments

Comments
 (0)