img的加载失败后展示默认图片(原生+vue)
<img src="图片地址" onerror="onerror=null;src='/resource/appoint/img/160.png'" alt="">
<img ref="loading-img" :onerror="error" alt="" :src="src" class="loading-img"> data() { return { error:'this.src="' + require('../../assets/img/perchimg/hengbig.png') + '"', }; },