Skip to content

Commit

Permalink
fix: fix controlhub menu
Browse files Browse the repository at this point in the history
  • Loading branch information
yongheng2016 committed Dec 5, 2024
1 parent 91e4c2b commit 5a3698a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/adminConsole/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/admin_console",
"version": "0.4.7",
"version": "0.4.8",
"description": "Control Hub",
"productName": "Control Hub",
"private": true,
Expand Down
7 changes: 6 additions & 1 deletion apps/adminConsole/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ const selectHandler = (data: any) => {
onMounted(() => {
const link = route.path.split('/')[1];
const target = optionsAll.find((item) => item.link === `/${link}`);
let target: any = optionsAll[0];
if (link === 'site-middleware') {
target = optionsAll.find((item) => item.link === route.path);
} else {
target = optionsAll.find((item) => item.link === `/${link}`);
}
if (target) {
active.value = target.key;
splitMenu.changeStatus(target.key);
Expand Down

0 comments on commit 5a3698a

Please sign in to comment.