Here is my code snippet that sets the background image for a component:
style() {
return {
"background-image": `url(${require(`../../../assets/images/${this
.last_result}.png`)})`
};
},
The expected URL should be
../../../assets/images/AR.png
However, I am encountering an error where the console is showing a modified URL:
/assets/images/AR0.2514806280000456da85c5fNaNpng
I am unable to identify the issue here. Can someone provide assistance?