template
 <img  :onerror="errorUserPhoto" :src="'Ecp.Picture.view.img?pictureId=' + head_pic" />
script
import userPhoto from '@/assets/images/userPhoto.jpg'
data() {
    return {
      errorUserPhoto:'this.src="' + userPhoto + '"',
    }
}
Logo

前往低代码交流专区

更多推荐