From fadeaadd65744df540c7cef7b5f9243fa4614895 Mon Sep 17 00:00:00 2001 From: yuliang_guo Date: Fri, 30 Jan 2026 18:32:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AD=A6=E5=91=98?= =?UTF-8?q?=E7=AB=AF=E6=88=90=E9=95=BF=E8=B7=AF=E5=BE=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=EF=BC=8C=E5=85=BC=E5=AE=B9=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/trainee/growth-path.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/views/trainee/growth-path.vue b/frontend/src/views/trainee/growth-path.vue index bd69c6c..4c6d839 100644 --- a/frontend/src/views/trainee/growth-path.vue +++ b/frontend/src/views/trainee/growth-path.vue @@ -490,8 +490,12 @@ const loadGrowthPath = async () => { growthPathLoading.value = true try { const response = await getGrowthPath() + // 兼容两种响应格式:直接返回数据 或 { code, data } 格式 if (response.code === 200 && response.data) { growthPathData.value = response.data + } else if (response.id && response.stages) { + // API 直接返回数据对象 + growthPathData.value = response } } catch (error) { console.error('加载成长路径失败:', error)