接入可配置文档编辑与智能取数服务
This commit is contained in:
@@ -50,6 +50,8 @@ import SkillsMarketplacePage from "./components/pages/SkillsMarketplacePage";
|
||||
import AgentMarketplacePage from "./components/pages/AgentMarketplacePage";
|
||||
import McpMarketplacePage from "./components/pages/McpMarketplacePage";
|
||||
import WorkflowMarketplacePage from "./components/pages/WorkflowMarketplacePage";
|
||||
import DataFetchPage from "./components/pages/DataFetchPage";
|
||||
import DocumentEditorPage from "./components/pages/DocumentEditorPage";
|
||||
import MCPSettings from "./components/settings/MCPSettings";
|
||||
import AppSidebar, {
|
||||
NavKey,
|
||||
@@ -106,6 +108,8 @@ type TabKey =
|
||||
| "legacySessions"
|
||||
| "automation"
|
||||
| "knowledge"
|
||||
| "document"
|
||||
| "dataFetch"
|
||||
| "skills"
|
||||
| "agents"
|
||||
| "mcpLibrary"
|
||||
@@ -1080,6 +1084,16 @@ function App() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (key === "document") {
|
||||
setActiveTab("document");
|
||||
return;
|
||||
}
|
||||
|
||||
if (key === "dataFetch") {
|
||||
setActiveTab("dataFetch");
|
||||
return;
|
||||
}
|
||||
|
||||
if (key === "toolIntegration" || key === "systemSettings") {
|
||||
setActiveTab("settings");
|
||||
return;
|
||||
@@ -1337,7 +1351,9 @@ function App() {
|
||||
{/* 主内容区:flex 子撑满,便于日志等页占满高度 */}
|
||||
<div
|
||||
className={
|
||||
webviewActions
|
||||
webviewActions ||
|
||||
activeTab === "document" ||
|
||||
activeTab === "dataFetch"
|
||||
? "app-content app-content-fullwidth"
|
||||
: "app-content"
|
||||
}
|
||||
@@ -1385,6 +1401,8 @@ function App() {
|
||||
)}
|
||||
{activeTab === "automation" && <AutomationPage />}
|
||||
{activeTab === "knowledge" && <KnowledgePage />}
|
||||
{activeTab === "document" && <DocumentEditorPage />}
|
||||
{activeTab === "dataFetch" && <DataFetchPage />}
|
||||
{activeTab === "skills" && <SkillsMarketplacePage />}
|
||||
{activeTab === "agents" && (
|
||||
<AgentMarketplacePage onStartChat={handleStartAgentChat} />
|
||||
|
||||
Reference in New Issue
Block a user