mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add implementation to prefix relative image urls with '/api'
This commit is contained in:
parent
5978adff68
commit
f8ff40148c
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user