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: {