feat: add import data quality center
This commit is contained in:
1 parent
0552b3e424
commit
b51b1868c0
33 files changed
+12824
-12
No files matched your search
@@ -66,10 +66,11 @@ export async function downloadApiPostFile(
|
||||
URL.revokeObjectURL(url)
|
||||
}
|
||||
|
||||
export async function importExcel(path: string, file: File) {
|
||||
export async function importExcel(path: string, file: File, validateOnly = false) {
|
||||
const form = new FormData()
|
||||
form.append('file', file)
|
||||
return http.post(path, form, {
|
||||
params: validateOnly ? { validateOnly: true } : undefined,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
timeout: 60000,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user