进入分类页的时候自动勾选左侧一级分类

pull/74/head
卢越 2024-08-09 21:26:29 +08:00
parent b093f99ab5
commit fd83bcf02a
1 changed files with 2 additions and 2 deletions

View File

@ -135,9 +135,9 @@
await getList(); await getList();
// //
const cateList = state.categoryList const cateList = state.categoryList
for (let index = 0; index < cateList.length;index++) { for (let index = 0; index < cateList.length; index++) {
if (cateList[index].id == params.id) { if (cateList[index].id == params.id) {
state.activeMenu = index onMenu(index);
break; break;
} }
} }