Fixed issue with wrong upload file.

This commit is contained in:
krzysiej
2022-06-07 11:38:50 +02:00
parent 21743d032c
commit 0831b2bbfb

View File

@@ -62,7 +62,7 @@ export default {
return (bytes / Math.pow(1024, e)).toFixed(2) + ' ' + ' KMGTP'.charAt(e) + 'B';
},
getFiles: function () {
axios.get(document.URL + '/files').then(response => this.files = response.data)
axios.get(window.location.href.replace(window.location.hash, '') + '/files').then(response => this.files = response.data)
}
}
}