no message

This commit is contained in:
2025-09-18 14:02:18 +08:00
parent c86e90d0be
commit 15618381d6
+8 -4
View File
@@ -56,7 +56,7 @@ export default {
data() {
return {
dataList: [],
tabList: [],
tabList: [{name:'全部'}],
curTab: 0,
};
},
@@ -68,7 +68,9 @@ export default {
async cascadeCategory() {
getCascadeCategory({ parentId: 0 }).then((res) => {
if (res && res.bizcode === 100) {
this.tabList = res.data;
res.data.forEach(item=>{
this.tabList.push(item);
})
this.getSearchList();
}
});
@@ -86,10 +88,12 @@ export default {
const params = {
type: 2,
page: 1,
pageSize: 99,
categoryId: this.tabList[this.curTab].id,
pageSize: 10000,
isPar: true,
};
if(this.curTab != 0){
params['categoryId'] = this.tabList[this.curTab].id;
}
const resp = await searchList(params);
if (resp && resp.bizcode === 100) {
this.dataList = resp.data || [];