我使用Vue已经有一段时间了,我注意到我可以将项目图像存储在assets
文件夹或public
文件夹中.
要访问Vue中assets
个文件夹中的图像,可以执行:src="require('@/assets/images/myimage.jpg')"
要访问Vue中public
个文件夹中的图像,可以执行:src="./static/images/myimage.jpg"
What's the proper location to store Vue project images?
What's the implication of using either?
How do they affect my project?