From 10c762851cf552a75c61ff5b1bcf4057028f0179 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 15 七月 2022 14:44:45 +0800
Subject: [PATCH] bug修复

---
 src/views/product/components/productCard.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/product/components/productCard.vue b/src/views/product/components/productCard.vue
index 8d69278..6645526 100644
--- a/src/views/product/components/productCard.vue
+++ b/src/views/product/components/productCard.vue
@@ -45,7 +45,7 @@
       this.$router.push({
         path: "/productDetail",
         query: {
-          name: this.data.productName,
+          id: this.data.id,
         },
       });
     },
@@ -92,12 +92,13 @@
     display: flex;
 
     img {
-      margin: 0 10px;
+      margin-left: 10px;
       width: 60px;
       height: 60px;
     }
 
     .right {
+      margin-left: 10px;
       .name {
         margin-bottom: 10px;
         font-size: 16px;

--
Gitblit v1.8.0