fix: 新增选手时传递createUser字段
- 在add-player页面提交选手时添加createUser字段 - 确保选手记录能正确关联到当前登录用户 - 解决新增选手后无法在列表中显示的问题 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
@@ -236,6 +236,7 @@ export default {
|
||||
try {
|
||||
const info = this.extractInfoFromIdCard(this.formData.idCard)
|
||||
|
||||
const userInfo = getUserInfo()
|
||||
const submitData = {
|
||||
playerName: this.formData.name,
|
||||
idCard: this.formData.idCard,
|
||||
@@ -245,7 +246,8 @@ export default {
|
||||
idCardType: 1,
|
||||
gender: info.gender,
|
||||
age: info.age,
|
||||
birthDate: info.birthDate
|
||||
birthDate: info.birthDate,
|
||||
createUser: userInfo ? userInfo.userId : null
|
||||
}
|
||||
|
||||
if (this.competitionId) {
|
||||
|
||||
Reference in New Issue
Block a user