Commit 8e2fd99b161803a3b4555fbb31d363fdb07a81ad
1 parent
4ec8c0af
fix: 详情页打开失败,prod2-75/76
Showing
3 changed files
with
6 additions
and
6 deletions
components/MobileProductDetail.vue
@@ -576,7 +576,7 @@ const loadProducts = async () => { | @@ -576,7 +576,7 @@ const loadProducts = async () => { | ||
576 | item.productimageliststore = []; // 解析失败时,设置为空数组 | 576 | item.productimageliststore = []; // 解析失败时,设置为空数组 |
577 | } | 577 | } |
578 | } | 578 | } |
579 | - const ree = (item.productimageliststore = item?.productimageliststore.map( | 579 | + const ree = (item.productimageliststore = item?.productimageliststore?.map( |
580 | (productItem: ProductImage) => ({ | 580 | (productItem: ProductImage) => ({ |
581 | ...productItem, | 581 | ...productItem, |
582 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, | 582 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, |
@@ -628,7 +628,7 @@ const loadHotProducts = async () => { | @@ -628,7 +628,7 @@ const loadHotProducts = async () => { | ||
628 | item.productimageliststore = []; // 解析失败时,设置为空数组 | 628 | item.productimageliststore = []; // 解析失败时,设置为空数组 |
629 | } | 629 | } |
630 | } | 630 | } |
631 | - const ree = (item.productimageliststore = item?.productimageliststore.map( | 631 | + const ree = (item.productimageliststore = item?.productimageliststore?.map( |
632 | (productItem: ProductImage) => ({ | 632 | (productItem: ProductImage) => ({ |
633 | ...productItem, | 633 | ...productItem, |
634 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, | 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,7 +623,7 @@ const loadHotProducts = async () => { | ||
623 | item.productimageliststore = []; // 解析失败时,设置为空数组 | 623 | item.productimageliststore = []; // 解析失败时,设置为空数组 |
624 | } | 624 | } |
625 | } | 625 | } |
626 | - const ree = (item.productimageliststore = item?.productimageliststore.map( | 626 | + const ree = (item.productimageliststore = item?.productimageliststore?.map( |
627 | (productItem: ProductImage) => ({ | 627 | (productItem: ProductImage) => ({ |
628 | ...productItem, | 628 | ...productItem, |
629 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, | 629 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, |
@@ -820,7 +820,7 @@ watchEffect(() => { | @@ -820,7 +820,7 @@ watchEffect(() => { | ||
820 | item.productimageliststore = []; // 解析失败时,设置为空数组 | 820 | item.productimageliststore = []; // 解析失败时,设置为空数组 |
821 | } | 821 | } |
822 | } | 822 | } |
823 | - const ree = (item.productimageliststore = item?.productimageliststore.map( | 823 | + const ree = (item.productimageliststore = item?.productimageliststore?.map( |
824 | (productItem: ProductImage) => ({ | 824 | (productItem: ProductImage) => ({ |
825 | ...productItem, | 825 | ...productItem, |
826 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, | 826 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`, |
deploy/prod2.sh
1 | #!/bin/bash | 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 | 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" |