fix: align canvas model options with backend

This commit is contained in:
2026-05-25 18:55:33 +08:00
parent 103907ca3a
commit 84d9de6b30
15 changed files with 181 additions and 397 deletions

View File

@@ -489,7 +489,8 @@ onMounted(() => {
if (!localModel.value || !isModelAvailable) {
// 使用 store 中的默认模型或第一个可用模型
localModel.value = modelStore.selectedVideoModel || availableModels[0]?.key || DEFAULT_VIDEO_MODEL
const selected = availableModels.find(m => m.key === modelStore.selectedVideoModel)?.key
localModel.value = selected || availableModels[0]?.key || DEFAULT_VIDEO_MODEL
updateNode(props.id, { model: localModel.value })
}
})