提交
This commit is contained in:
1 parent
833544def3
commit
16be6fa22d
204 files changed
+455089
-46491
No files matched your search
@@ -148,10 +148,16 @@ export async function checkConvert(id: number | string) {
|
||||
return { data: unwrapData(res) }
|
||||
}
|
||||
|
||||
export function exportClue(query?: ClueQuery) {
|
||||
export function exportClue(data: Record<string, any> = {}) {
|
||||
const { ids, columns, ...rest } = data
|
||||
const body: Record<string, any> = {
|
||||
...mapListQuery(rest as ClueQuery),
|
||||
...(ids ? { ids } : {}),
|
||||
...(columns ? { columns } : {})
|
||||
}
|
||||
return request.post({
|
||||
url: `${BASE}/export`,
|
||||
data: mapListQuery(query),
|
||||
data: body,
|
||||
responseType: 'blob',
|
||||
showErrorMessage: false
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user