KI-AGENT: Exportdateien über API-Client herunterladen
All checks were successful
Build and Push Docker Images / build-website (push) Successful in 36s
Build and Push Docker Images / build-central-services-api (push) Successful in 35s
Build and Push Docker Images / build-central-services-admin (push) Successful in 35s
Build and Push Docker Images / build-backend (push) Successful in 35s
Build and Push Docker Images / build-frontend (push) Successful in 1m54s
Build and Push Docker Images / build-docs (push) Successful in 34s
All checks were successful
Build and Push Docker Images / build-website (push) Successful in 36s
Build and Push Docker Images / build-central-services-api (push) Successful in 35s
Build and Push Docker Images / build-central-services-admin (push) Successful in 35s
Build and Push Docker Images / build-backend (push) Successful in 35s
Build and Push Docker Images / build-frontend (push) Successful in 1m54s
Build and Push Docker Images / build-docs (push) Successful in 34s
This commit is contained in:
@@ -62,13 +62,19 @@ const setupPage = async () => {
|
|||||||
|
|
||||||
setupPage()
|
setupPage()
|
||||||
|
|
||||||
function downloadFile(row) {
|
async function downloadFile(row) {
|
||||||
|
const response = await useNuxtApp().$api.raw(row.url, {
|
||||||
|
method: "GET",
|
||||||
|
responseType: "blob"
|
||||||
|
})
|
||||||
|
const objectUrl = URL.createObjectURL(response._data as Blob)
|
||||||
const a = document.createElement("a")
|
const a = document.createElement("a")
|
||||||
a.href = row.url
|
a.href = objectUrl
|
||||||
a.download = row.file_path.split("/").pop()
|
a.download = row.file_path.split("/").pop()
|
||||||
document.body.appendChild(a)
|
document.body.appendChild(a)
|
||||||
a.click()
|
a.click()
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
|
URL.revokeObjectURL(objectUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
const showCreateExportModal = ref(false)
|
const showCreateExportModal = ref(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user