Default config view to toggles

This commit is contained in:
Hao19911125
2026-04-06 23:18:20 +08:00
parent 78cd92f707
commit 77ad1a6497
2 changed files with 8 additions and 8 deletions

View File

@@ -89,7 +89,7 @@
</div>
<div class="bme-config-nav bme-config-nav-desktop">
<button
class="bme-config-nav-btn active"
class="bme-config-nav-btn"
data-config-section="api"
type="button"
>
@@ -97,7 +97,7 @@
<span>API 配置</span>
</button>
<button
class="bme-config-nav-btn"
class="bme-config-nav-btn active"
data-config-section="toggles"
type="button"
>
@@ -495,7 +495,7 @@
<div class="bme-config-nav bme-config-nav-mobile">
<button
class="bme-config-nav-btn active"
class="bme-config-nav-btn"
data-config-section="api"
type="button"
>
@@ -503,7 +503,7 @@
<span>API 配置</span>
</button>
<button
class="bme-config-nav-btn"
class="bme-config-nav-btn active"
data-config-section="toggles"
type="button"
>
@@ -538,7 +538,7 @@
<div class="bme-config-sections">
<section
class="bme-config-section active"
class="bme-config-section"
data-config-section="api"
>
<div class="bme-config-section-head">
@@ -857,7 +857,7 @@
</details>
</section>
<section class="bme-config-section" data-config-section="toggles">
<section class="bme-config-section active" data-config-section="toggles">
<div class="bme-config-section-head">
<div class="bme-config-section-kicker">功能开关</div>
<h3 class="bme-config-section-title">主链路与增强能力</h3>

View File

@@ -196,7 +196,7 @@ let overlayEl = null;
let graphRenderer = null;
let mobileGraphRenderer = null;
let currentTabId = "dashboard";
let currentConfigSectionId = "api";
let currentConfigSectionId = "toggles";
let currentTaskProfileTaskType = "extract";
let currentTaskProfileTabId = "generation";
let currentTaskProfileBlockId = "";
@@ -839,7 +839,7 @@ function _applyWorkspaceMode() {
}
function _switchConfigSection(sectionId) {
currentConfigSectionId = sectionId || "api";
currentConfigSectionId = sectionId || "toggles";
_syncConfigSectionState();
if (currentConfigSectionId === "prompts") {
_refreshTaskProfileWorkspace();