I'm encountering a slight issue with my code:
<template slot="popover">
<img :src="'img/articles/' + item.id + '_1.jpg'">
</template>
Some of the item.id numbers (Example: 002917/1) contain a slash, causing some images not to display. I would like to remove the last two characters when there is a slash in the number. Is there an easy solution for this?
The deletion of the slash should only occur at this specific point in the code and not where else the item.id is utilized.
I am fairly new to vue and javascript, so please be gentle.
I am using vue version 16.13.1