技能字段修改
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user