摘要: 阅读全文
posted @ 2022-11-14 14:00 李云蹊 阅读(66) 评论(0) 推荐(0) 编辑
摘要: <img :src="item.url? item.url: '' " alt :onerror="defaultImg" /> 这里一定要判断src,不然接口返回url为null时,后面的onerror不生效 computed: { defaultImg () { return 'this.src 阅读全文
posted @ 2022-11-14 11:19 李云蹊 阅读(206) 评论(0) 推荐(0) 编辑