From 89d186c82e9911294780df7d2900d6513eac8fad Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 4 Jul 2026 16:52:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend)=EF=BC=9AextraNodes=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=92=8C=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AI 返回的 extraNodes 可能是字符串数组 [知识点D1] 也可能是对象 数组 [{title: 知识点D1}],前端 computed 统一转为 {title} 格式 --- src/components/ReviewRecall.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ReviewRecall.vue b/src/components/ReviewRecall.vue index b98d6fb..3d91db8 100644 --- a/src/components/ReviewRecall.vue +++ b/src/components/ReviewRecall.vue @@ -265,7 +265,9 @@ const missedItems = computed(() => { // 额外节点列表 const extraNodes = computed(() => { - return lastResult.value?.extraNodes || []; + const raw = lastResult.value?.extraNodes || []; + // 兼容字符串数组和对象数组两种格式 + return raw.map((item: any) => typeof item === "string" ? { title: item } : item); }); onMounted(() => {