Pre Merge pull request !72 from 卢越/master

pull/72/MERGE
卢越 2024-08-09 12:20:14 +00:00 committed by Gitee
commit bb6f47b5e8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 9 additions and 1 deletions

View File

@ -131,8 +131,16 @@
getGoodsList();
}
onLoad(async () => {
onLoad(async (params) => {
await getList();
//
const cateList = state.categoryList
for (let index = 0; index < cateList.length;index++) {
if (cateList[index].id == params.id) {
state.activeMenu = index
break;
}
}
// first
if (state.style === 'first_one' || state.style === 'first_two') {
onMenu(0);