diff --git a/platform/frontend/admin.html b/platform/frontend/admin.html index 8a0430c..6b470c5 100644 --- a/platform/frontend/admin.html +++ b/platform/frontend/admin.html @@ -111,7 +111,7 @@ {{ defaultProvider }} ({{ defaultModel }}) ← 默认(趋势/采集/创作/优化) | - sensenova (deepseek-v4-flash) + {{ complianceProvider }} ({{ complianceModel }}) ← 合规审查固定
@@ -1101,15 +1101,23 @@ const llmConfigs = ref([]); }); const defaultProvider = computed(() => { - const active = llmConfigs.value.filter(x => x.is_active); - return active.length ? active[0].provider : '-'; + const sorted = [...llmConfigs.value].filter(x => x.is_active).sort((a, b) => a.id - b.id); + return sorted.length ? sorted[0].provider : '-'; }); const defaultModel = computed(() => { - const active = llmConfigs.value.filter(x => x.is_active); - return active.length ? active[0].model : '-'; + const sorted = [...llmConfigs.value].filter(x => x.is_active).sort((a, b) => a.id - b.id); + return sorted.length ? sorted[0].model : '-'; + }); + const complianceProvider = computed(() => { + const c = [...llmConfigs.value].filter(x => x.is_active && x.model === 'deepseek-v4-flash'); + return c.length ? c[0].provider : '-'; + }); + const complianceModel = computed(() => { + const c = [...llmConfigs.value].filter(x => x.is_active && x.model === 'deepseek-v4-flash'); + return c.length ? c[0].model : '-'; }); return { - defaultProvider, defaultModel, + defaultProvider, defaultModel, complianceProvider, complianceModel, activeTab, switchTab, llmConfigs, llmConfigsLoading, llmConfigDialogVisible, llmConfigForm, llmConfigDialogTitle, showLLMConfigDialog, saveLLMConfig, deleteLLMConfig, platformConfigs, platformConfigsLoading, platformConfigsRequested, pcShowActiveOnly, showPcDialog, pcForm, pcDialogTitle, showPcDialogFn, savePcForm, editingPcPlatform,