删除用户ID参数
This commit is contained in:
@@ -184,13 +184,6 @@
|
||||
return;
|
||||
}
|
||||
console.log(userInfo.userId)
|
||||
// 动态获取用户ID
|
||||
const currentUserId = userInfo.userId;
|
||||
if (!currentUserId) {
|
||||
$api.msg('用户信息获取失败,请重新登录');
|
||||
return;
|
||||
}
|
||||
|
||||
// 调试:打印表单数据
|
||||
console.log('表单数据:', formData);
|
||||
console.log('结束时间:', formData.endDate);
|
||||
@@ -200,11 +193,10 @@
|
||||
const endDateValue = formData.endDate === '至今' ? currentDate : formData.endDate;
|
||||
console.log('处理后的结束时间:', endDateValue);
|
||||
|
||||
// 准备请求参数
|
||||
// 准备请求参数(不包含userId,让后端通过token获取)
|
||||
const params = {
|
||||
companyName: formData.companyName.trim(),
|
||||
position: formData.position.trim(),
|
||||
userId: currentUserId, // 使用动态获取的用户ID
|
||||
startDate: formData.startDate,
|
||||
endDate: endDateValue, // 使用处理后的结束时间
|
||||
description: formData.description.trim()
|
||||
|
Reference in New Issue
Block a user