diff --git a/src/components/VndbPanel.vue b/src/components/VndbPanel.vue index 0a1f63f..4a4dab3 100644 --- a/src/components/VndbPanel.vue +++ b/src/components/VndbPanel.vue @@ -319,39 +319,48 @@ - +
-

声优

+

角色配音

({{ searchStore.vndbInfo.va.length }})
-
+
-
@@ -975,6 +984,15 @@ function openGallery(startIndex: number) { } } +// 根据角色ID获取角色图片 +function getCharacterImage(characterId: string | undefined): string | undefined { + if (!characterId) { + return undefined + } + const char = characters.value.find(c => c.id === characterId) + return char?.image +} + // 格式化性别 function formatSex(sex: string): string { const sexMap: Record = {