vue cli 项目中设置背景图

https://blog.csdn.net/MoLvSHan/article/details/78204972

 

 

 

不能直接写成相对路径,像下面这这种就会报错

backgroundImage: "url("../../assets/img/bac.jpg")"

 

posted @ 2019-12-04 20:48  leahtao  阅读(1244)  评论(0编辑  收藏  举报