(1). data()中引入:
icon: require('@/assets/images/modules-a5.png')
icon: require('../../assets/images/modules-picture.png')
(2). style中引入:
background: url(../../assets/images/entry-icon.png) 0 0 no-repeat;
(3). html中引入:
<img src="@/assets/images/a-1.png" alt="">
<img src="../../assets/images/a-1.png" alt="">
标签:vue,assets,..,images,引入,icon,png,图片
From: https://blog.51cto.com/u_16273048/7947330