feat: 同步精简接口并统一表单校验
This commit is contained in:
1 parent
82d7bde631
commit
2eea0ea72e
66 files changed
+1611
-1100
No files matched your search
@@ -43,3 +43,10 @@ export function recoveryOptions(checkpoints: Checkpoint[]) {
|
||||
)
|
||||
return { retry, shots, storyboard }
|
||||
}
|
||||
|
||||
/** 项目公开详情不含内部任务;按每条工作流的最新 checkpoint 检查活动执行。 */
|
||||
export function hasRunningWorkflow(checkpoints: Checkpoint[]): boolean {
|
||||
return [...new Set(checkpoints.map(item => item.workflowName))].some(
|
||||
name => workflowCheckpoints(checkpoints, name).at(-1)?.state.workflowExecution?.status === 'running'
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user