mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-07 09:28:53 +08:00
refactor(GoodsClassNav): 优化品牌ID处理与选择逻辑
- 重构品牌ID的获取方式,使用新方法 appendBrandIdsByNames 简化逻辑 - 更新多选确认逻辑,避免重复选择相同类型 - 调整标签内容显示逻辑,确保品牌标签在选择时正确显示 - 修复商品列表页的分页参数,确保从第一页开始加载数据
This commit is contained in:
@@ -148,7 +148,7 @@ export default {
|
||||
total: 0, // 列表总数
|
||||
params: {
|
||||
// 请求参数
|
||||
pageNumber: 0,
|
||||
pageNumber: 1,
|
||||
pageSize: 20,
|
||||
categoryId: "",
|
||||
},
|
||||
@@ -179,7 +179,7 @@ export default {
|
||||
handleSearch(key) {
|
||||
this.params.keyword = key;
|
||||
this.$route.query.keyword = key
|
||||
this.params.pageNumber = 0;
|
||||
this.params.pageNumber = 1;
|
||||
this.getGoodsList();
|
||||
},
|
||||
orderBy(data, index) {
|
||||
|
||||
Reference in New Issue
Block a user