mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
This commit is contained in:
@@ -234,10 +234,9 @@ const actions = {
|
||||
})
|
||||
},
|
||||
async getTaskResultExcel({ state, commit }, id) {
|
||||
const { data } = await request.request('GET',
|
||||
'/tasks/' + id + '/results/download', {}, {
|
||||
responseType: 'blob' // important
|
||||
})
|
||||
const { data } = await request.get('/tasks/' + id + '/results/download', {}, {
|
||||
responseType: 'blob' // important
|
||||
})
|
||||
const downloadUrl = window.URL.createObjectURL(new Blob([data]))
|
||||
|
||||
const link = document.createElement('a')
|
||||
|
||||
Reference in New Issue
Block a user