fix(short-drama-agent-front): 修复代码格式检查问题
This commit is contained in:
1 parent
81d6a85260
commit
48fce3975f
87 files changed
+5714
-1436
No files matched your search
@@ -97,17 +97,23 @@ export function storyboardPrerequisites(checkpoints: Checkpoint[], episodeNo: nu
|
||||
const latest = workflowCheckpoints(checkpoints, 'breakdown').at(-1)
|
||||
const state = latest?.state
|
||||
/** 候选只供阅读和修订,提交前不能充当正式制作输入。 */
|
||||
const uncommitted = state?.candidateOnly === true && state.storyboardPersisted !== true && state.candidateCommitted !== true
|
||||
const uncommitted =
|
||||
state?.candidateOnly === true && state.storyboardPersisted !== true && state.candidateCommitted !== true
|
||||
const directionEpisodes = state?.breakdownResult?.storyboardEpisodeShots ?? []
|
||||
const visualEpisodes = state?.storyboardEpisodeShots ?? []
|
||||
return {
|
||||
directionEpisode: !uncommitted && directionEpisodes.some(item => item.episodeNo === episodeNo),
|
||||
directionProject: !uncommitted && directionEpisodes.length > 0,
|
||||
visualEpisode:
|
||||
!uncommitted && visualEpisodes.some(item => item.episodeNo === episodeNo) &&
|
||||
!uncommitted &&
|
||||
visualEpisodes.some(item => item.episodeNo === episodeNo) &&
|
||||
!!state?.subjectCandidates?.length &&
|
||||
!!state?.subjectForms?.length,
|
||||
visualProject:
|
||||
!uncommitted &&
|
||||
visualEpisodes.length > 0 &&
|
||||
!!state?.subjectCandidates?.length &&
|
||||
!!state?.subjectForms?.length,
|
||||
visualProject: !uncommitted && visualEpisodes.length > 0 && !!state?.subjectCandidates?.length && !!state?.subjectForms?.length,
|
||||
breakdownRunning: state?.workflowExecution?.status === 'running'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user