From f7f0e44c4be8eb0e77fd310296c3b43bde21e4f9 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 23 六月 2022 14:17:01 +0800 Subject: [PATCH] 新增联动场景 --- src/views/productDetail/index.vue | 21 +++++---------------- 1 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/views/productDetail/index.vue b/src/views/productDetail/index.vue index 3706282..9523177 100644 --- a/src/views/productDetail/index.vue +++ b/src/views/productDetail/index.vue @@ -51,27 +51,16 @@ let param = { page: 1, size: 1, - inputText: "", - id: this.$route.query.id, + inputText: this.$route.query.name, archType: "", gpuType: "", publishStatus: 1, productType: 0, }; - findAllCenterProduct(param) - .then((res) => { - this.data.data = res.data.list[0]; - this.showData = true; - }) - .catch((err) => { - console.log(err); - this.$notify({ - type: "error", - message: "鏌ヨ浜у搧澶辫触", - duration: 2500, - offset: 57, - }); - }); + findAllCenterProduct(param).then((res) => { + this.data.data = res.data.list[0]; + this.showData = true; + }); }, }, }; -- Gitblit v1.8.0