feat(short-drama-agent-front): 完善质量规则确认与中文交互

This commit is contained in:
GJ committed 2026-10-17 22:09:28 +08:00
1 parent 190333d4f9
commit c4b43b9725
85 files changed
+2059 -480

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ import { useRoute, useRouter } from 'vue-router'
import { NScrollbar, NButton, NPageHeader, NSpin, NEllipsis } from 'naive-ui'
import { EmptyState, WorkspaceRefreshButton } from '../../components/ui'
import { projectContextKey, useProjectData } from './context'
import { getOperation } from '../workflows/operations'
import { getOperation, operationErrorText } from '../workflows/operations'
import { projectAccessKey, projectSectionFromPath, type ProjectAccess } from './access'
import { useProjectStageAccess } from './useProjectStageAccess'
import { useWorkflowExecution } from '../workflows/execution'
@@ -116,7 +116,7 @@ type OperationGuide = {
}
/** 仅为明确缺失的前置条件提供恢复入口,不把同页生成失败变成无效跳转。 */
const operationGuide = computed<OperationGuide | null>(() => {
const error = operation.value.error?.trim()
const error = operationErrorText(operation.value).trim()
if (!error) return null
const normalized = error.toLowerCase()
if (normalized.includes('primary keyframe') || error.includes('主首帧'))