fix(settings): wire up saveModel to persist changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 11:35:45 +08:00
parent 7bbaf67591
commit e7c1a57287
2 changed files with 6 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ const emit = defineEmits<{
(e: 'update', data: LLMModelConfig): void
(e: 'delete'): void
(e: 'test', data: LLMModelConfig): void
(e: 'save', data: LLMModelConfig): void
}>()
const showApiKey = ref(false)
@@ -115,7 +116,7 @@ function onProviderChange() {
<button
class="save-btn"
:disabled="status !== 'available'"
@click="emit('update', editingModel)"
@click="emit('save', editingModel)"
>
保存
</button>