fix: 完善剧本完成状态限制并优化表单对齐与配色
This commit is contained in:
1 parent
a24326b85d
commit
370e7bb4a6
19 files changed
+340
-67
No files matched your search
@@ -3,7 +3,7 @@ import { useProjectContext } from '../projects/context'
|
||||
import { getOperation } from './operations'
|
||||
import { workflowCheckpoints } from './selectors'
|
||||
|
||||
/** 资产编辑沿用项目级互斥;剧本生成或拆解期间不修改其下游资产。 */
|
||||
/** 资产编辑要求剧本正式完成,并沿用项目级互斥,拆解运行期间不修改其下游资产。 */
|
||||
export function useProjectMutationGuard() {
|
||||
const context = useProjectContext()
|
||||
const projectId = computed(() => context.project.value?.id ?? '')
|
||||
@@ -13,7 +13,7 @@ export function useProjectMutationGuard() {
|
||||
!projectId.value ||
|
||||
!!context.error.value ||
|
||||
operation.value.pending ||
|
||||
context.project.value?.status === 'generating' ||
|
||||
context.project.value?.status !== 'completed' ||
|
||||
workflowCheckpoints(context.checkpoints.value, 'breakdown').at(-1)?.state.workflowExecution?.status ===
|
||||
'running'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user