vue-cli 在css里设置背景图background:url 2018-10-10 本文已影响0人 yico铛铛 1、在webpack.prod.conf.js文件里output里面添加:publicPath:'./' 2、在utils.js文件里添加 publicPath:'../../'