I am facing a coding issue that I need help with:
<template slot="popover">
<img :src="'img/articles/' + item.id + '_1.jpg'">
</template>
Some of the numbers in my item.id contain slashes, leading to certain images not being displayed. I would like to either replace the slash with an underscore or remove it altogether when a slash is present in the item.id. Can someone suggest a straightforward solution for this problem?
Note that the replacement should occur only in this specific portion of code and not anywhere else where item.id is utilized.