diff --git a/frontend/src/components/Guide/steps.ts b/frontend/src/components/Guide/steps.ts
index 62ffeac9..c79db78f 100644
--- a/frontend/src/components/Guide/steps.ts
+++ b/frontend/src/components/Guide/steps.ts
@@ -3,8 +3,11 @@ import { DriveStep } from 'driver.js'
/**
* 管理员完整引导流程
* 交互式引导:指引用户实际操作
+ * @param t 国际化函数
+ * @param isSimpleMode 是否为简易模式(简易模式下会过滤分组相关步骤)
*/
-export const getAdminSteps = (t: (key: string) => string): DriveStep[] => [
+export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): DriveStep[] => {
+ const allSteps: DriveStep[] = [
// ========== 欢迎介绍 ==========
{
popover: {
@@ -221,7 +224,24 @@ export const getAdminSteps = (t: (key: string) => string): DriveStep[] => [
showButtons: ['close']
}
}
-]
+ ]
+
+ // 简易模式下过滤分组相关步骤
+ if (isSimpleMode) {
+ return allSteps.filter(step => {
+ const element = step.element as string | undefined
+ // 过滤掉分组管理和账号分组选择相关步骤
+ return !element || (
+ !element.includes('sidebar-group-manage') &&
+ !element.includes('groups-create-btn') &&
+ !element.includes('group-form-') &&
+ !element.includes('account-form-groups')
+ )
+ })
+ }
+
+ return allSteps
+}
/**
* 普通用户引导流程
diff --git a/frontend/src/components/layout/AppHeader.vue b/frontend/src/components/layout/AppHeader.vue
index 24020203..e3985619 100644
--- a/frontend/src/components/layout/AppHeader.vue
+++ b/frontend/src/components/layout/AppHeader.vue
@@ -199,7 +199,7 @@
-
+
+
+
+