ZZJ
2022-07-14 2b99047683332624832c1dfcae596e957a710b7d
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;
      });
    },