See #327: Cleaned now unused backend.absoluteUrl and config module

This commit is contained in:
Eliot Berriot 2018-06-23 07:25:27 +02:00
parent f3e2193782
commit 2e3a2cd6dd
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
20 changed files with 24 additions and 61 deletions

View file

@ -49,7 +49,7 @@ export default {
return []
}
let sources = [
{type: file.mimetype, url: file.path}
{type: file.mimetype, url: this.$store.getters['instance/absoluteUrl'](file.path)}
]
if (this.$store.state.auth.authenticated) {
// we need to send the token directly in url