BUG修复,返回结构统一

This commit is contained in:
李琦
2026-01-16 17:03:34 +08:00
parent 87ed11db7a
commit e6edf7210b
57 changed files with 3642 additions and 1074 deletions

View File

@@ -155,8 +155,9 @@ const fetchProfileData = async () => {
email: data.email,
wechat: data.wechat
},
techStack: data.techStack,
experiences: data.experiences || []
// 确保 techStack 和 experiences 始终是数组
techStack: Array.isArray(data.techStack) ? data.techStack : [],
experiences: Array.isArray(data.experiences) ? data.experiences : []
}
} catch (err) {
console.error('Error fetching profile data:', err)