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