<img :src="item.headUrl" alt="" class="contact-head" :onerror="morenImage">
data () {
return {
morenImage: 'this.src="static/image/head.png"', // 默认头像
}
}
<img :src="item.headUrl" alt="" class="contact-head" :onerror="morenImage">
data () {
return {
morenImage: 'this.src="static/image/head.png"', // 默认头像
}
}