diff --git a/frontend/src/components/GlobalConfig.jsx b/frontend/src/components/GlobalConfig.jsx index 77101ad..cd61a99 100644 --- a/frontend/src/components/GlobalConfig.jsx +++ b/frontend/src/components/GlobalConfig.jsx @@ -1049,6 +1049,80 @@ const GlobalConfig = ({ currentUser }) => { )} + + + {/* 预设方案快速切换(仅管理员 + 全局策略账号) */} + {isAdmin && isGlobalStrategyAccount && ( +
+
+

快速切换方案

+
+ 当前方案: + + {currentPreset && presets && presets[currentPreset] ? presets[currentPreset].name : '自定义'} + +
+
+
+
怎么选更不迷糊
+ +
+ +
+ {presetGroups.map((g) => ( +
+
+
{g.title}
+
{g.desc}
+
+
+ {g.presetKeys + .filter((k) => presets && presets[k]) + .map((k) => { + const preset = presets && presets[k] ? presets[k] : null + if (!preset) return null + const meta = presetUiMeta && presetUiMeta[k] ? presetUiMeta[k] : { group: g.key, tag: '' } + return ( + + ) + }) + .filter(Boolean)} +
+
+ ))} +
+
+ )} + {/* 全局策略配置项编辑(仅管理员) */} {isAdmin && (
@@ -1123,77 +1197,7 @@ const GlobalConfig = ({ currentUser }) => {
)} - {/* 预设方案快速切换(仅管理员 + 全局策略账号) */} - {isAdmin && isGlobalStrategyAccount && ( -
-
-

快速切换方案

-
- 当前方案: - - {currentPreset && presets && presets[currentPreset] ? presets[currentPreset].name : '自定义'} - -
-
-
-
怎么选更不迷糊
- -
-
- {presetGroups.map((g) => ( -
-
-
{g.title}
-
{g.desc}
-
-
- {g.presetKeys - .filter((k) => presets && presets[k]) - .map((k) => { - const preset = presets && presets[k] ? presets[k] : null - if (!preset) return null - const meta = presetUiMeta && presetUiMeta[k] ? presetUiMeta[k] : { group: g.key, tag: '' } - return ( - - ) - }) - .filter(Boolean)} -
-
- ))} -
-
- )} {/* 用户管理 */}