Pre Merge pull request !74 from 卢越/master

pull/74/MERGE
卢越 2024-08-09 14:23:34 +00:00 committed by Gitee
commit 1fe2db8742
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 7 additions and 1 deletions

View File

@ -131,8 +131,14 @@
getGoodsList();
}
onLoad(async () => {
onLoad(async (params) => {
await getList();
//
const foundCategory = state.categoryList.find(category => category.id == params.id);
// onMenu onMenu(0)
onMenu(foundCategory ? state.categoryList.indexOf(foundCategory) : 0);
// first
if (state.style === 'first_one' || state.style === 'first_two') {
onMenu(0);