Commit 52595722b4727ce98c45089fb08fcf2ef906117b

Authored by boyang
1 parent 4697e3fc

fix: 列表页展示无图片商品,prod2-61/62

deploy/prod2.sh
1 1 #!/bin/bash
2 2 # 变量定义
3   -LAST_TAG="1.0.59"
4   -TAG="1.0.60"
  3 +LAST_TAG="1.0.61"
  4 +TAG="1.0.62"
5 5 TARGET_PATH="/root/web/canrud-outside-nuxt-front"
6 6 DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front"
7 7 IMAGE_NAME="canrud-outside-front"
... ...
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"
... ...