html部分
<div class="imgBox" :style="{backgroundImage:'url('+imgUrl+')'}"></div>
css部分
.imgBox{
width: 250px;
height: 150px;
background-size: cover;
}
<div class="imgBox" :style="{backgroundImage:'url('+imgUrl+')'}"></div>
.imgBox{
width: 250px;
height: 150px;
background-size: cover;
}