fix: restore video generation config guard

This commit is contained in:
2026-05-28 10:03:44 +08:00
parent 47b7073514
commit 5c6476fe1a

View File

@@ -244,7 +244,8 @@ const imagesByRole = computed(() => {
// Get current model config | 获取当前模型配置
const currentModelConfig = computed(() => getModelConfig(localModel.value))
const canGenerate = computed(() => !!modelStore.currentApiKey && currentModelConfig.value?.available !== false)
const isConfigured = computed(() => !!modelStore.currentApiKey)
const canGenerate = computed(() => isConfigured.value && currentModelConfig.value?.available !== false)
// Model options from Pinia store (filtered by provider) | 从 Pinia store 获取模型选项(根据渠道过滤)
const modelOptions = computed(() => modelStore.allVideoModelOptions)