based path correction
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user