🐞 fix(gvg): 添加确认队伍

This commit is contained in:
luying
2023-03-15 16:11:54 +08:00
parent e488e1f4db
commit 899cb3162e
4 changed files with 33 additions and 10 deletions

View File

@@ -770,14 +770,16 @@ export class MyTeamSimpleInfo {
dataId: number; // 出兵表上的位置
order: number; // 行动
}[];
hasConfirm: boolean;
constructor(team: GVGTeamType) {
constructor(team: GVGTeamType, configId: number) {
this.teamCode = team.teamCode;
this.index = team.index;
this.head = team.head;
this.frame = team.frame;
this.spine = team.spine;
this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
this.hasConfirm = team.confirmConfigId == configId;
}
}