From ee5539fb0fb9443ad60cfcfd9927fae7f3823998 Mon Sep 17 00:00:00 2001 From: paulGao Date: Tue, 29 Mar 2022 17:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpc=E6=90=9C=E7=B4=A2=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E5=8F=82=E6=95=B0=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/GoodsList.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue index 90106cb7..6343afcf 100644 --- a/buyer/src/pages/GoodsList.vue +++ b/buyer/src/pages/GoodsList.vue @@ -150,6 +150,12 @@ export default { $route() { const keyword = this.$route.query.keyword; this.handleSearch(keyword); + if (this.$route.query.categoryId) { + let cateId = this.$route.query.categoryId.split(","); + Object.assign(this.params, this.$route.query); + this.params.categoryId = cateId[cateId.length - 1]; + this.getGoodsList(); + } }, }, methods: {