将图片放在assets中引入问题
2019-01-29 本文已影响7人
兜兜里冒糖糖
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标签里面就按照正常的路径写