feat: 展示身份图片生成与失败状态

This commit is contained in:
GouJ committed 2026-09-24 22:42:18 +08:00
1 parent d67cfa8193
commit 6c31a21ef6
1 file changed
+18
@@ -63,6 +63,8 @@ const {
canGenerateText,
canGenerateImage,
canGenerateCandidate,
activeIdentityGeneration,
latestIdentityFailure,
batchValid,
candidateLimitValid,
save,
@@ -826,6 +828,22 @@ watch(
>前往剧本拆解</RouterLink
></EmptyState
>
<NAlert
v-if="activeIdentityGeneration"
type="info"
:show-icon="false"
class="mb-4 text-xs"
>
{{ subject?.name }} 的身份图片正在生成({{ activeIdentityGeneration.provider || '图片模型' }}),刷新页面不会重复提交,请等待当前任务完成。
</NAlert>
<NAlert
v-else-if="latestIdentityFailure"
type="error"
:show-icon="false"
class="mb-4 text-xs"
>
最近一次身份图片生成失败:{{ latestIdentityFailure.error || '未返回具体错误' }}。可以调整模型参数后重新生成。
</NAlert>
<IdentityImageDialog
v-if="subject"
v-model:open="imageOpen"