[Vuejs]-Can't display image after getting assets path with axios

0๐Ÿ‘

I think the problem is in your URL
http://localhost:3000/tests/~/assets/captures/ref_01_03_2022_17_05_21/@DHRD-52484/user%20language%20check%20dates%20in%20different%20language/1.png

/~/ this was supposed to be an alias, and replaced to some kind of path, but it is being passed directly.

You probably need to define proper aliases,
here is how you can do it on webpack and vite.

Or you can simply use the relative path without the alias in test: require('~/assets/...)

Leave a comment