摘要: 方法1(不推荐): 将图片放到public目录下,即可以正常使用。 方法2(推荐): 不妨建立common文件夹,然后建立common.js文件,写个函数,如下: export const getAssetsImages = (name) => { return new URL(`/src/asse 阅读全文
posted @ 2022-10-08 09:55 RHCHIK 阅读(194) 评论(0) 推荐(0) 编辑