fix: 主体身份单项操作不受其他形态任务阻塞
This commit is contained in:
1 parent
1fdcda122e
commit
ac4a99a1eb
1 file changed
+11
-2
@@ -104,7 +104,6 @@ export function useSubjectIdentity() {
|
|||||||
projectBlocked.value ||
|
projectBlocked.value ||
|
||||||
!!catalog.error.value ||
|
!!catalog.error.value ||
|
||||||
!catalog.data.value ||
|
!catalog.data.value ||
|
||||||
!!catalog.data.value.running ||
|
|
||||||
!!styleQuery.error.value ||
|
!!styleQuery.error.value ||
|
||||||
!styleQuery.data.value
|
!styleQuery.data.value
|
||||||
)
|
)
|
||||||
@@ -187,7 +186,15 @@ export function useSubjectIdentity() {
|
|||||||
|
|
||||||
/** 批量仅生成身份文本,已锁定项由后端跳过,回执保留部分失败。 */
|
/** 批量仅生成身份文本,已锁定项由后端跳过,回执保留部分失败。 */
|
||||||
async function generateProject(charactersOnly = false, module?: 'scene' | 'prop') {
|
async function generateProject(charactersOnly = false, module?: 'scene' | 'prop') {
|
||||||
if (blocked.value || !hasStyle.value || !batchValid.value || dirty.value || !subjects.value.length) return
|
if (
|
||||||
|
blocked.value ||
|
||||||
|
!!catalog.data.value?.running ||
|
||||||
|
!hasStyle.value ||
|
||||||
|
!batchValid.value ||
|
||||||
|
dirty.value ||
|
||||||
|
!subjects.value.length
|
||||||
|
)
|
||||||
|
return
|
||||||
const id = projectId.value
|
const id = projectId.value
|
||||||
const target = getIdentitySession(id)
|
const target = getIdentitySession(id)
|
||||||
const input = { concurrency: concurrency.value, force: force.value, ...(module ? { module } : {}) }
|
const input = { concurrency: concurrency.value, force: force.value, ...(module ? { module } : {}) }
|
||||||
@@ -213,6 +220,7 @@ export function useSubjectIdentity() {
|
|||||||
async function generateStableAnchors(module: 'scene' | 'prop') {
|
async function generateStableAnchors(module: 'scene' | 'prop') {
|
||||||
if (
|
if (
|
||||||
blocked.value ||
|
blocked.value ||
|
||||||
|
!!catalog.data.value?.running ||
|
||||||
!hasStyle.value ||
|
!hasStyle.value ||
|
||||||
!hasCreativeProfile.value ||
|
!hasCreativeProfile.value ||
|
||||||
!batchValid.value ||
|
!batchValid.value ||
|
||||||
@@ -242,6 +250,7 @@ export function useSubjectIdentity() {
|
|||||||
async function generateCastingCandidates() {
|
async function generateCastingCandidates() {
|
||||||
if (
|
if (
|
||||||
castingBlocked.value ||
|
castingBlocked.value ||
|
||||||
|
!!catalog.data.value?.running ||
|
||||||
!hasStyle.value ||
|
!hasStyle.value ||
|
||||||
!batchValid.value ||
|
!batchValid.value ||
|
||||||
!candidateLimitValid.value ||
|
!candidateLimitValid.value ||
|
||||||
|
|||||||
Reference in new issue
Block a user