fix(frontend): #1913 智能剪辑无有效模板时后端自动兜底,移除空template硬拦截 #1913
Reference in New Issue
Block a user
Delete Branch "fix/1913-preview-material-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P0 修复:智能剪辑预览卡在"独立选片中..."拿不到素材
问题根因
用户无有效模板时 selectedTemplate 为空,前端
useStep2Materials和useBatchVariantPlans中if (!templateId) return硬拦截直接退出,不发任何请求,导致预览一直卡在"独立选片中"。修复内容
if (!tid) return硬拦截,空 tid 时仍发 from-assets 请求(后端自动兜底创建默认 voice_over 模板)if (!templateId)硬拦截,空 templateId 时仍发 variant-plans 请求;新增超时/失败友好错误提示关联
🚀 预览环境已部署
CI全绿,自动审批通过。
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #1913 已关闭或合并,对应的预览环境已被清理。