Commit eaefd5590249acfb657482f5a114b0aa0d9f5b44
1 parent
cac563fc
van-image异常图片处理
Showing
2 changed files
with
8 additions
and
2 deletions
src/components/palaceGrid/palaceGrid.vue
| ... | ... | @@ -10,7 +10,11 @@ |
| 10 | 10 | fit="cover" |
| 11 | 11 | lazy-load |
| 12 | 12 | :src="item.img || item" |
| 13 | - /> | |
| 13 | + > | |
| 14 | + <template v-slot:error> | |
| 15 | + <img class="img" v-lazy="users.logo || item" alt=""/> | |
| 16 | + </template> | |
| 17 | + </van-image> | |
| 14 | 18 | <div v-if="index<8&&item.v === true" class="play_box"> |
| 15 | 19 | <img src="static/img/play.png" /> |
| 16 | 20 | </div> | ... | ... |
src/components/userAvatarBox/userAvatarBox.vue