Commit 52595722b4727ce98c45089fb08fcf2ef906117b
1 parent
4697e3fc
fix: 列表页展示无图片商品,prod2-61/62
Showing
2 changed files
with
3 additions
and
3 deletions
deploy/prod2.sh
pages/products/index.vue
... | ... | @@ -30,7 +30,7 @@ |
30 | 30 | v-bind="props" |
31 | 31 | :to="`/products/detail/${item.id}`" |
32 | 32 | > |
33 | - <v-img :src="item.imgList[0].url" :alt="item.name"> </v-img> | |
33 | + <v-img :src="item.imgList[0]?.url" :alt="item.name"> </v-img> | |
34 | 34 | <v-card-text |
35 | 35 | class="tw-text-left font-weight-medium title" |
36 | 36 | style="height: auto" | ... | ... |