<el-col :span="4" v-for="(item, index) in listData" :key="index">
<div class="grid-content grid-icon">
<router-link :to="item.url.replace('/', '-')">
<!--<img src="'../../assets/img/'+item.imgUrl)" alt="">--> //动态拼接地址,使用本地的图片不显示
<img :src="require('../../assets/img/'+item.imgUrl)" alt=""> //换这个方法
<span>{{item.name}}</span>
<span>{{item.enName}}</span>
</router-link>
</div>
</el-col>