1、在webpack.prod.conf.js文件里output里面添加:publicPath:'./'

2、在utils.js文件里添加 publicPath:'../../'

1、在webpack.prod.conf.js文件里output里面添加:publicPath:'./'
2、在utils.js文件里添加 publicPath:'../../'
本文标题:vue-cli 在css里设置背景图background:url
本文链接:https://www.haomeiwen.com/subject/xkvpaftx.html
网友评论