diff --git a/src/features/subject-identity/useSubjectIdentity.ts b/src/features/subject-identity/useSubjectIdentity.ts index 51af361..63e14db 100644 --- a/src/features/subject-identity/useSubjectIdentity.ts +++ b/src/features/subject-identity/useSubjectIdentity.ts @@ -18,7 +18,7 @@ import type { /** 单主体保存响应必须与提交时固定的正式 ID 一致。 */ function assertIdentity(value: SubjectIdentity, id: string) { - if (!value || value.subjectId !== id) throw new Error('后端未返回匹配的主体身份,请刷新核对。') + if (!value || value.subjectId !== id) throw new Error('没有获取到匹配的主体身份,请刷新后重试。') } /** 主体目录、项目风格和当前身份分开查询,未创建 Identity 不误报为空图库错误。 */ @@ -296,7 +296,7 @@ export function useSubjectIdentity() { const ok = await runOperation(projectId.value, `提交 ${subject.value.name} 身份参考图生成`, async () => { const image = await subjectIdentityApi.generateImage(id, input) if (!image || image.identityId !== identityId || !['pending', 'generating'].includes(image.status)) { - throw new Error(image?.error || '后端未返回有效的身份图片生成任务,请刷新核对。') + throw new Error(image?.error || '身份参考图任务未成功创建,请刷新后重试。') } }) if (ok) { @@ -313,7 +313,7 @@ export function useSubjectIdentity() { const ok = await runOperation(projectId.value, `提交 ${subject.value.name} 选角候选生成`, async () => { const image = await subjectIdentityApi.generateCastingCandidate(id, input) if (!image || image.identityId !== identityId || !['pending', 'generating'].includes(image.status)) { - throw new Error(image?.error || '后端未返回有效的选角候选生成任务,请刷新核对。') + throw new Error(image?.error || '选角候选任务未成功创建,请刷新后重试。') } }) if (ok) { @@ -337,7 +337,7 @@ export function useSubjectIdentity() { !result.isAnchor || !canBeAnchor(result) ) - throw new Error('接口未确认身份母版切换,请刷新核对。') + throw new Error('身份母版切换结果未确认,请刷新后核对。') }) await detail.refresh() } @@ -367,7 +367,7 @@ export function useSubjectIdentity() { result.anchor.identityId !== identityId || !canBeAnchor(result.anchor) ) - throw new Error('接口未确认身份母版与身份锁定,请刷新核对。') + throw new Error('身份母版确认结果未保存,请刷新后核对。') }) await Promise.all([detail.refresh(), catalog.refresh()]) } @@ -398,7 +398,7 @@ export function useSubjectIdentity() { result.anchor.identityId !== identityId || !canBeAnchor(result.anchor) ) - throw new Error('接口未确认演员母版与身份锁定,请刷新核对。') + throw new Error('角色选角确认结果未保存,请刷新后核对。') }) await Promise.all([detail.refresh(), castingQuery.refresh()]) }