技能字段修改

This commit is contained in:
冯辉
2025-11-13 12:14:34 +08:00
parent 76484a8194
commit b31e7d3913

View File

@@ -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) => {