diff --git a/src/admin/pages/MemoryV2Page.tsx b/src/admin/pages/MemoryV2Page.tsx index 51f2a19..770ee57 100644 --- a/src/admin/pages/MemoryV2Page.tsx +++ b/src/admin/pages/MemoryV2Page.tsx @@ -16,6 +16,7 @@ import type { MemoryV2RuntimeStatusResponse, PersonalMemoryCandidateListResponse, } from '../../types'; +import { isMemoryV2SectionEnabled } from './memory-v2-config'; type BackendKey = | 'pgvector' @@ -923,7 +924,8 @@ export function MemoryV2Page() { {CAPABILITIES.map((capability, index) => { const section = draft[capability.key]; const currentSection = current[capability.key]; - const enabled = Boolean(section.enabled); + const enabled = isMemoryV2SectionEnabled(capability.key, section); + const savedEnabled = isMemoryV2SectionEnabled(capability.key, currentSection); const accent = BACKEND_ACCENTS[index % BACKEND_ACCENTS.length]; return (
)} - - 当前保存:{Boolean(currentSection.enabled) ? '启用' : '关闭'} + + 当前保存:{savedEnabled ? '启用' : '关闭'}