fix: restore backup history listing

This commit is contained in:
2026-03-10 14:16:44 +01:00
parent 8bd78a610f
commit d0e39c92b2
4 changed files with 8 additions and 8 deletions

View File

@@ -82,8 +82,8 @@ watch(() => props.folder, async (folder) => {
loading.value = true
try {
const data = await $fetch<string[]>(`/api/backups?folder=${folder}`)
backups.value = data.slice(0, 6)
const data = await $fetch<string[]>(`/api/backups?folder=${encodeURIComponent(folder)}`)
backups.value = data.slice(0, 5)
} catch (error) {
console.error("Erreur récupération backups:", error)
backups.value = []