修改首页分类跳转没有数据问题

static-project
chen 2022-06-06 10:49:27 +08:00
parent 1bd8e6489f
commit bdbc2b4a19
1 changed files with 6 additions and 4 deletions

View File

@ -133,11 +133,13 @@
this.newWidth = this.newWidth - rect.width - 20; this.newWidth = this.newWidth - rect.width - 20;
}).exec() }).exec()
},200) },200)
this.pid = this.cateList[0].id; this.pid = this.cateList[this.current].id;
if(this.cateList[0].child) { if(this.cateList[this.current].child) {
this.secendCateList = this.cateList[0].child; this.secendCateList = this.cateList[this.current].child;
this.checkShopList(this.secendCateList[0].id);
}else{
this.checkShopList(this.cateList[this.current].id);
} }
this.checkShopList(this.cateList[0].id);
} }
}) })
}, },