Commit 9fd97756670ec4d0c6171a989bbf0585a5098552

Authored by boyang
1 parent 826a5bf6

fix: 解决url匹配问题,prod2.sh-28/29

components/MobileProductDetail.vue
@@ -324,7 +324,7 @@ const items = ref<BreadcrumbItem[]>([ @@ -324,7 +324,7 @@ const items = ref<BreadcrumbItem[]>([
324 { 324 {
325 title: "Products", 325 title: "Products",
326 disabled: false, 326 disabled: false,
327 - href: "http://localhost:3000/products", 327 + href: "https://www.canrud.com/products",
328 }, 328 },
329 { 329 {
330 title: "CATEGORY", 330 title: "CATEGORY",
@@ -347,10 +347,10 @@ watchEffect(() => { @@ -347,10 +347,10 @@ watchEffect(() => {
347 if (info?.productCrumbsVO?.category1 && productStore.keyword) { 347 if (info?.productCrumbsVO?.category1 && productStore.keyword) {
348 items.value[1].title = info.productCrumbsVO.category1; 348 items.value[1].title = info.productCrumbsVO.category1;
349 items.value[1].href = 349 items.value[1].href =
350 - "http://localhost:3000/products?categories=" + 350 + "https://www.canrud.com/products?categories=" +
351 info.productCrumbsVO.category1; 351 info.productCrumbsVO.category1;
352 href1.value = 352 href1.value =
353 - "http://localhost:3000/products?categories=" + 353 + "https://www.canrud.com/products?categories=" +
354 info.productCrumbsVO.category1; 354 info.productCrumbsVO.category1;
355 if (info?.productCrumbsVO?.category2) { 355 if (info?.productCrumbsVO?.category2) {
356 items.value[2].title = info.productCrumbsVO.category2; 356 items.value[2].title = info.productCrumbsVO.category2;
@@ -384,8 +384,8 @@ watchEffect(() => { @@ -384,8 +384,8 @@ watchEffect(() => {
384 } 384 }
385 items.value[1].title = mainCategory; 385 items.value[1].title = mainCategory;
386 items.value[1].href = 386 items.value[1].href =
387 - "http://localhost:3000/products?categories=" + mainCategory;  
388 - href1.value = "http://localhost:3000/products?categories=" + mainCategory; 387 + "https://www.canrud.com/products?categories=" + mainCategory;
  388 + href1.value = "https://www.canrud.com/products?categories=" + mainCategory;
389 // items.value[1].title = subCategoryName.value; 389 // items.value[1].title = subCategoryName.value;
390 href2.value = href1.value + "," + subCategoryName.value; 390 href2.value = href1.value + "," + subCategoryName.value;
391 items.value[2].href = href1.value + "," + subCategoryName.value; 391 items.value[2].href = href1.value + "," + subCategoryName.value;
@@ -403,10 +403,10 @@ watchEffect(() => { @@ -403,10 +403,10 @@ watchEffect(() => {
403 } else if (info?.productCrumbsVO?.category1) { 403 } else if (info?.productCrumbsVO?.category1) {
404 items.value[1].title = info.productCrumbsVO.category1; 404 items.value[1].title = info.productCrumbsVO.category1;
405 items.value[1].href = 405 items.value[1].href =
406 - "http://localhost:3000/products?categories=" + 406 + "https://www.canrud.com/products?categories=" +
407 info.productCrumbsVO.category1; 407 info.productCrumbsVO.category1;
408 href1.value = 408 href1.value =
409 - "http://localhost:3000/products?categories=" + 409 + "https://www.canrud.com/products?categories=" +
410 info.productCrumbsVO.category1; 410 info.productCrumbsVO.category1;
411 if (info?.productCrumbsVO?.category2) { 411 if (info?.productCrumbsVO?.category2) {
412 items.value[2].title = info.productCrumbsVO.category2; 412 items.value[2].title = info.productCrumbsVO.category2;
deploy/prod2.sh
1 #!/bin/bash 1 #!/bin/bash
2 # 变量定义 2 # 变量定义
3 -LAST_TAG="1.0.27"  
4 -TAG="1.0.28" 3 +LAST_TAG="1.0.28"
  4 +TAG="1.0.29"
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"