1.在data里面
nav:[
{img: require("../../../assets/xxx.png")},
{img: require('../../../assets/xxx.png')},
],
2.在img标签里面就按照正常的路径写
1.在data里面
nav:[
{img: require("../../../assets/xxx.png")},
{img: require('../../../assets/xxx.png')},
],
2.在img标签里面就按照正常的路径写
本文标题:将图片放在assets中引入问题
本文链接:https://www.haomeiwen.com/subject/fluxsqtx.html
网友评论