0👍
I solved this problem with function like this
const getImageUrl = (assetName) => {
return new URL(`../../assets/${assetName}.png`, import.meta.url).href
}
This function translates url address for every image without the need to import each one.
- [Vuejs]-How to call chart-zoom resetZoom function when char data changes?
- [Vuejs]-VueJS Question about architecture and distribution of files in VueJS project
Source:stackexchange.com