diff --git a/frontend/src/pages/ConceptAnalysis.tsx b/frontend/src/pages/ConceptAnalysis.tsx index ba686e9..fd8829a 100644 --- a/frontend/src/pages/ConceptAnalysis.tsx +++ b/frontend/src/pages/ConceptAnalysis.tsx @@ -311,17 +311,22 @@ export function ConceptAnalysis() { if (!activeConfig) { return ( -
- setShowConfig(true)} className="p-1.5 text-muted hover:bg-surface hover:text-accent" title="配置数据源"> - - - } - /> - -
+ <> +
+ setShowConfig(true)} className="p-1.5 text-muted hover:bg-surface hover:text-accent" title="配置数据源"> + + + } + /> + +
+ + {showConfig && setShowConfig(false)} />} + + ) } diff --git a/frontend/src/pages/IndustryAnalysis.tsx b/frontend/src/pages/IndustryAnalysis.tsx index 6b86e6d..c941c08 100644 --- a/frontend/src/pages/IndustryAnalysis.tsx +++ b/frontend/src/pages/IndustryAnalysis.tsx @@ -358,10 +358,22 @@ export function IndustryAnalysis() { if (!activeConfig) { return ( -
- - -
+ <> +
+ setShowConfig(true)} className="p-1.5 text-muted hover:bg-surface hover:text-accent" title="配置数据源"> + + + } + /> + +
+ + {showConfig && setShowConfig(false)} showHierarchyLevel />} + + ) }