diff --git a/pages/complete-info/complete-info.vue b/pages/complete-info/complete-info.vue index 6e540de..f1c57c6 100644 --- a/pages/complete-info/complete-info.vue +++ b/pages/complete-info/complete-info.vue @@ -772,18 +772,18 @@ function complete() { } if (isValid) { - // 构建 experiencesList 数组 - 使用新的技能数据结构 - const experiencesList = []; + // 构建 appSkillsList 数组 - 使用新的技能数据结构 + const appSkillsList = []; state.skills.forEach(skill => { if (skill.name && skill.level) { - experiencesList.push({ + appSkillsList.push({ name: skill.name, levels: skill.level }); } }); - // 构建符合要求的请求数据(experiencesList 与 appUser 同级) + // 构建符合要求的请求数据(appSkillsList 与 appUser 同级) const requestData = { appUser: { name: fromValue.name, @@ -799,7 +799,7 @@ function complete() { salaryMax: fromValue.salaryMax, ytjPassword: fromValue.ytjPassword }, - experiencesList: experiencesList + appSkillsList: appSkillsList }; $api.createRequest('/registerUser', requestData, 'post').then(async (resData) => {