fix(short-drama-agent-front): 优化工作区提示与弹窗布局
This commit is contained in:
1 parent
5b134207b8
commit
72a86171dc
35 files changed
+586
-378
No files matched your search
@@ -39,7 +39,11 @@ export function isActiveVideo(item: ShotVideo): boolean {
|
||||
return ['pending', 'queued', 'running'].includes(item.status)
|
||||
}
|
||||
|
||||
/** 就绪问题转为用户可直接理解的短标签;页面不暴露服务端实现术语。 */
|
||||
/**
|
||||
* 就绪问题转为可直接理解的中文短标签,未知问题仍显示明确提示。
|
||||
* @param code 后端就绪问题码
|
||||
* @returns 页面显示的中文问题标签
|
||||
*/
|
||||
export function issueLabel(code: ProductionIssueCode): string {
|
||||
const labels: Record<ProductionIssueCode, string> = {
|
||||
invalid_generation_spec: '生成规格不完整',
|
||||
@@ -53,9 +57,10 @@ export function issueLabel(code: ProductionIssueCode): string {
|
||||
stale_prompt: '视频提示词需要更新',
|
||||
provider_input_recovery: '视频模型输入需要处理',
|
||||
missing_keyframe: '缺少主首帧',
|
||||
stale_keyframe: '主首帧已过期'
|
||||
stale_keyframe: '主首帧已过期',
|
||||
failed_keyframe_quality: '首帧画面检查未通过'
|
||||
}
|
||||
return labels[code]
|
||||
return labels[code] ?? '生成条件需要完善'
|
||||
}
|
||||
|
||||
/** 生产状态中文标签,未知值由状态组件回退显示原文。 */
|
||||
|
||||
Reference in new issue
Block a user