第一步:使用:style和中文引号绑定data中的数据
<div :style="{ backgroundImage: `url(${imgSrc})`}" class="divImg">
第二步:定义这个div的其他样式
<style scoped>
.divImg {
display: flex;
height: 100%;
width: 100%;
//background-color: #070c32;
background: url("../注水管柱.png") no-repeat;
justify-content: center;
align-items: center;
background-size: 100% 100%;
}