<div class="icon" :style="{'backgroundImage': `url(${require(`@/assets/images/${item.type}.png`)})`}"></div>
vue动态加载静态图片
最新推荐文章于 2024-06-13 16:15:02 发布
<div class="icon" :style="{'backgroundImage': `url(${require(`@/assets/images/${item.type}.png`)})`}"></div>