fix: 导入人员列表后卡住
初始化数据时,提供的字段值为string类型,使用push方法报错。
This commit is contained in:
@@ -22,8 +22,9 @@ export const addOtherInfo=(personList:any[])=>{
|
||||
for (let i = 0; i < len; i++) {
|
||||
personList[i].createTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
|
||||
personList[i].updateTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
|
||||
personList[i].prizeName='';
|
||||
personList[i].prizeTime='';
|
||||
personList[i].prizeName = [] as string[];
|
||||
personList[i].prizeTime = [] as string[];
|
||||
personList[i].prizeId = [];
|
||||
}
|
||||
|
||||
return personList
|
||||
|
||||
Reference in New Issue
Block a user