From b560f907b7b2221d7c073a1241d7380a175a1c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 18 Aug 2025 23:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=95=9C=E5=A4=B4?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=20=E8=A7=92=E8=89=B2=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/adapter/textToShot.ts | 2 +- components/ui/character-editor.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/service/adapter/textToShot.ts b/app/service/adapter/textToShot.ts index cc466a3..6315f72 100644 --- a/app/service/adapter/textToShot.ts +++ b/app/service/adapter/textToShot.ts @@ -256,7 +256,7 @@ export class TextToShotAdapter { currentScript += node.text; } if (node.type === 'characterToken') { - currentScript = currentScript + node.attrs.name + ' ' + node.attrs.id; + currentScript = currentScript + node.attrs.name + ' [' + node.attrs.id + ']'; } }); } diff --git a/components/ui/character-editor.tsx b/components/ui/character-editor.tsx index 58689af..01b8fa9 100644 --- a/components/ui/character-editor.tsx +++ b/components/ui/character-editor.tsx @@ -82,3 +82,5 @@ export const CharacterEditor = forwardRef(({ ); }); + +CharacterEditor.displayName = 'CharacterEditor';