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/productDetail/index.vue |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/views/productDetail/index.vue b/src/views/productDetail/index.vue
index bdc9586..654af17 100644
--- a/src/views/productDetail/index.vue
+++ b/src/views/productDetail/index.vue
@@ -27,7 +27,7 @@
 import PayCard from "@/views/productDetail/components/PayCard";
 import Footer from "@/components/Footer";
 import Function from "@/views/productDetail/components/Function";
-import { findAllCenterProduct } from "@/api/product";
+import { getProductById } from "@/api/product";
 export default {
   created() {
     this.getProduct();
@@ -49,16 +49,10 @@
   methods: {
     getProduct() {
       let param = {
-        page: 1,
-        size: 1,
-        inputText: this.$route.query.name,
-        archType: "",
-        gpuType: "",
-        publishStatus: 1,
-        productType: 0,
+        id: this.$route.query.id,
       };
-      findAllCenterProduct(param).then((res) => {
-        this.data.data = res.data.list[0];
+      getProductById(param).then((res) => {
+        this.data.data = res.data;
         this.showData = true;
       });
     },

--
Gitblit v1.8.0