based path correction

This commit is contained in:
2026-01-21 20:48:45 +00:00
parent 3eeaa797ad
commit 4338f347c5
5 changed files with 10 additions and 12 deletions

View File

@@ -50,7 +50,7 @@
}).then(r => { // r resolves to { file: "my_audio.mp3" }
const file = r.file; // in this case r["file"] --> "my_audio.mp3"
const a = document.createElement("a");
a.href = urlJoin(conf.app.baseURL, `/download/${file}`)
a.href = useBasedPath(`/download/${file}`)
a.download = file; // sets suggested filename
file_dwnl.value = a.href; // this ref activates the Download button
document.body.appendChild(a); // must append first
@@ -62,7 +62,7 @@
const res = r.data;
console.log(r.data)
if(res.statusCode == 401) {
reloadNuxtApp({path: "/login"})
navigateTo(useBasedPath("/login"),{external: true})
}
else toast.add({
title: "Error",