feat: 主体确认后同步形态图片准入

This commit is contained in:
GouJ committed 2026-09-26 21:30:15 +08:00
1 parent b317802780
commit 379fedeccd
1 file changed
+2 -1
@@ -6,6 +6,7 @@ import { subjectImagesApi } from '../subject-images/api'
import { hasRunningImages } from '../subject-images/model' import { hasRunningImages } from '../subject-images/model'
import { runOperation } from '../workflows/operations' import { runOperation } from '../workflows/operations'
import { useProjectMutationGuard } from '../workflows/useProjectMutationGuard' import { useProjectMutationGuard } from '../workflows/useProjectMutationGuard'
import { useProjectContext } from '../projects/context'
import { subjectIdentityApi } from './api' import { subjectIdentityApi } from './api'
import { canBeAnchor, getIdentitySession, groupIdentitySubjects, mergeCastingSubjects } from './model' import { canBeAnchor, getIdentitySession, groupIdentitySubjects, mergeCastingSubjects } from './model'
import type { import type {
@@ -400,7 +401,7 @@ export function useSubjectIdentity() {
) )
throw new Error('角色选角确认结果未保存,请刷新后核对。') throw new Error('角色选角确认结果未保存,请刷新后核对。')
}) })
await Promise.all([detail.refresh(), castingQuery.refresh()]) await Promise.all([detail.refresh(), castingQuery.refresh(), projectContext.refreshStageReadiness()])
} }
return { return {