Commit 8e2fd99b161803a3b4555fbb31d363fdb07a81ad

Authored by boyang
1 parent 4ec8c0af

fix: 详情页打开失败,prod2-75/76

components/MobileProductDetail.vue
... ... @@ -576,7 +576,7 @@ const loadProducts = async () => {
576 576 item.productimageliststore = []; // 解析失败时,设置为空数组
577 577 }
578 578 }
579   - const ree = (item.productimageliststore = item?.productimageliststore.map(
  579 + const ree = (item.productimageliststore = item?.productimageliststore?.map(
580 580 (productItem: ProductImage) => ({
581 581 ...productItem,
582 582 // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`,
... ... @@ -628,7 +628,7 @@ const loadHotProducts = async () => {
628 628 item.productimageliststore = []; // 解析失败时,设置为空数组
629 629 }
630 630 }
631   - const ree = (item.productimageliststore = item?.productimageliststore.map(
  631 + const ree = (item.productimageliststore = item?.productimageliststore?.map(
632 632 (productItem: ProductImage) => ({
633 633 ...productItem,
634 634 // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`,
... ...
components/ProductDetail.vue
... ... @@ -623,7 +623,7 @@ const loadHotProducts = async () => {
623 623 item.productimageliststore = []; // 解析失败时,设置为空数组
624 624 }
625 625 }
626   - const ree = (item.productimageliststore = item?.productimageliststore.map(
  626 + const ree = (item.productimageliststore = item?.productimageliststore?.map(
627 627 (productItem: ProductImage) => ({
628 628 ...productItem,
629 629 // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`,
... ... @@ -820,7 +820,7 @@ watchEffect(() => {
820 820 item.productimageliststore = []; // 解析失败时,设置为空数组
821 821 }
822 822 }
823   - const ree = (item.productimageliststore = item?.productimageliststore.map(
  823 + const ree = (item.productimageliststore = item?.productimageliststore?.map(
824 824 (productItem: ProductImage) => ({
825 825 ...productItem,
826 826 // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`,
... ...
deploy/prod2.sh
1 1 #!/bin/bash
2 2 # 变量定义
3   -LAST_TAG="1.0.74"
4   -TAG="1.0.75"
  3 +LAST_TAG="1.0.75"
  4 +TAG="1.0.76"
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"
... ...