From de69deea54deb797c226c61f412e206e68571c28 Mon Sep 17 00:00:00 2001 From: GouJ Date: Tue, 1 Sep 2026 18:39:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=BA=AB=E4=BB=BD=E5=9B=BE=E5=BA=93?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E6=8F=90=E7=A4=BA=E8=AF=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/IdentityGallery.vue | 3 ++- src/features/subject-identity/identity.test.ts | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/features/subject-identity/components/IdentityGallery.vue b/src/features/subject-identity/components/IdentityGallery.vue index 10482b3..5199644 100644 --- a/src/features/subject-identity/components/IdentityGallery.vue +++ b/src/features/subject-identity/components/IdentityGallery.vue @@ -161,7 +161,8 @@ function chooseAnchor() { >取消 - +

{{ selected.prompt }}

{ + it('实际提示词默认展开,可手动收起,轮询更新不强行重新展开', async () => { + const image = identityImageFixture({ prompt: '本次实际生成提示词' }) + wrapper = mount(IdentityGallery, { + props: { subjectName: '林夏', module: 'character', identityLocked: true, disabled: false, images: [image] } + }) + const panel = wrapper.get('.n-collapse-item') + expect(panel.classes()).toContain('n-collapse-item--active') + expect(panel.text()).toContain('本次实际生成提示词') + await panel.get('.n-collapse-item__header-main').trigger('click') + expect(panel.classes()).not.toContain('n-collapse-item--active') + await wrapper.setProps({ images: [{ ...image, prompt: '更新后的实际提示词' }] }) + expect(panel.classes()).not.toContain('n-collapse-item--active') + await panel.get('.n-collapse-item__header-main').trigger('click') + expect(panel.classes()).toContain('n-collapse-item--active') + expect(panel.text()).toContain('更新后的实际提示词') + }) + it('全部历史记录显示在预览下方,候选、辅助、失败和进行中图片均可切换查看', async () => { const images = [ identityImageFixture({