fix: call Excel export via /export/projects
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -90,7 +90,7 @@ async function downloadProjectsExcel() {
|
|||||||
if (!canExport.value || exporting.value) return
|
if (!canExport.value || exporting.value) return
|
||||||
exporting.value = true
|
exporting.value = true
|
||||||
try {
|
try {
|
||||||
const { data, headers } = await api.get('/export/projects.xlsx', {
|
const { data, headers } = await api.get('/export/projects', {
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
})
|
})
|
||||||
const disposition = String(headers?.['content-disposition'] || '')
|
const disposition = String(headers?.['content-disposition'] || '')
|
||||||
|
|||||||
Reference in New Issue
Block a user