From de59371f50991a0dbee997eb4a13fd3f5f415ffd Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期五, 21 三月 2025 09:45:21 +0800
Subject: [PATCH] feat(login): 添加 Keycloak 登录支持
---
src/components/TopNav/index.vue | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue
index c41177e..cfe2cd7 100644
--- a/src/components/TopNav/index.vue
+++ b/src/components/TopNav/index.vue
@@ -84,12 +84,15 @@
// 榛樿婵�娲荤殑鑿滃崟
const activeMenu = computed(() => {
- const path = route.path;
+ let path = route.path;
+ if (path === '/index') {
+ path = '/system/user';
+ }
let activePath = path;
if (path !== undefined && path.lastIndexOf('/') > 0 && hideList.indexOf(path) === -1) {
const tmpPath = path.substring(1, path.length);
- activePath = '/' + tmpPath.substring(0, tmpPath.indexOf('/'));
if (!route.meta.link) {
+ activePath = '/' + tmpPath.substring(0, tmpPath.indexOf('/'));
appStore.toggleSideBarHide(false);
}
} else if (!route.children) {
--
Gitblit v1.9.3