Commit 52595722b4727ce98c45089fb08fcf2ef906117b
1 parent
4697e3fc
fix: 列表页展示无图片商品,prod2-61/62
Showing
2 changed files
with
3 additions
and
3 deletions
deploy/prod2.sh
1 | #!/bin/bash | 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 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" | 5 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" |
6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" | 6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" |
7 | IMAGE_NAME="canrud-outside-front" | 7 | IMAGE_NAME="canrud-outside-front" |
pages/products/index.vue
@@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
30 | v-bind="props" | 30 | v-bind="props" |
31 | :to="`/products/detail/${item.id}`" | 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 | <v-card-text | 34 | <v-card-text |
35 | class="tw-text-left font-weight-medium title" | 35 | class="tw-text-left font-weight-medium title" |
36 | style="height: auto" | 36 | style="height: auto" |