Fix:Local covers path for localhost

This commit is contained in:
advplyr 2022-10-02 10:07:24 -05:00
parent a729ce1512
commit d456ec2786

View File

@ -164,7 +164,7 @@ export default {
.filter((f) => f.fileType === 'image') .filter((f) => f.fileType === 'image')
.map((file) => { .map((file) => {
var _file = { ...file } var _file = { ...file }
_file.localPath = `/s/item/${this.libraryItemId}/${this.$encodeUriPath(file.metadata.relPath).replace(/^\//, '')}` _file.localPath = `${process.env.serverUrl}/s/item/${this.libraryItemId}/${this.$encodeUriPath(file.metadata.relPath).replace(/^\//, '')}`
return _file return _file
}) })
} }