修复pc搜索商品分类参数无效问题

master
paulGao 2022-03-29 17:57:42 +08:00
parent 5188bba5b1
commit ee5539fb0f
1 changed files with 6 additions and 0 deletions

View File

@ -150,6 +150,12 @@ export default {
$route() { $route() {
const keyword = this.$route.query.keyword; const keyword = this.$route.query.keyword;
this.handleSearch(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: { methods: {