Add implementation to prefix relative image urls with '/api'

This commit is contained in:
aonomike 2019-05-03 16:21:33 +03:00
parent 5978adff68
commit f8ff40148c

View File

@ -15,8 +15,8 @@ export default {
},
computed: {
imageSrc() {
// TODO implement
return 'this should be an image source attribute'
const src = this.imageProps.src
return src.startsWith('/') ? src.replace('/','/api/') : src
}
}
}