1👍
As you have correctly pointed out, vue does not interpret @/asstes. @ also only stands for src/. For this reason, you can replace the @ with src, then it should work.
makeImgPath(imgName = 'defaultImageName') { // suggestion
return "src/assets/svgs/" + imgName + "svg";
}
- [Vuejs]-Vuejs vee-validate: this.error.add -> add message from dictionary
- [Vuejs]-Is there a way to generate static id`s in Vue.Js?
Source:stackexchange.com