I have a little problem with my code:
<template slot="popover">
<img :src="'img/articles/' + item.id + '_1.jpg'">
</template>
Some of my item.id numbers have a slash in them. As a result, some images are not displayed. Now I would like to replace the slash with an underline or delete it, if a slash occurs in the item.id numbers. Is there a simple solution for this?
The slash should only be replaced at this point in the code and not in another place where the item.id is used.
<img :src="'img/articles/' + handleSlash(item.id) + '_1.jpg'">