릴리스: v1.4.21 프런트 topic 응답 소비 정리

This commit is contained in:
2026-04-02 20:25:49 +09:00
parent 28fa7bb37d
commit 337bee8900
11 changed files with 31 additions and 19 deletions

View File

@@ -898,9 +898,9 @@ onMounted(() => {
}
try {
const gameRes = await api.getTopic(templateId.value)
templateName.value = gameRes.game?.name || templateId.value
const base = (gameRes.items || []).map((img) => ({
const topicRes = await api.getTopic(templateId.value)
templateName.value = topicRes.topic?.name || topicRes.game?.name || templateId.value
const base = (topicRes.items || []).map((img) => ({
id: img.id,
src: img.src,
label: img.label,