fix: restore video generation config guard
This commit is contained in:
@@ -244,7 +244,8 @@ const imagesByRole = computed(() => {
|
|||||||
|
|
||||||
// Get current model config | 获取当前模型配置
|
// Get current model config | 获取当前模型配置
|
||||||
const currentModelConfig = computed(() => getModelConfig(localModel.value))
|
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 获取模型选项(根据渠道过滤)
|
// Model options from Pinia store (filtered by provider) | 从 Pinia store 获取模型选项(根据渠道过滤)
|
||||||
const modelOptions = computed(() => modelStore.allVideoModelOptions)
|
const modelOptions = computed(() => modelStore.allVideoModelOptions)
|
||||||
|
|||||||
Reference in New Issue
Block a user