commit
This commit is contained in:
@@ -1981,7 +1981,11 @@ layout("/layouts/platform.html"){
|
|||||||
const {users, awardsModeT, awardsModeG, team, activity, getEvent} = resp.data
|
const {users, awardsModeT, awardsModeG, team, activity, getEvent} = resp.data
|
||||||
this.activityData = activity
|
this.activityData = activity
|
||||||
this.eventData = getEvent
|
this.eventData = getEvent
|
||||||
this.teams = team
|
this.teams = team.sort((a, b) => {
|
||||||
|
const numA = parseInt(a.name.replace('第', '').replace('队', ''))
|
||||||
|
const numB = parseInt(b.name.replace('第', '').replace('队', ''))
|
||||||
|
return numA - numB
|
||||||
|
})
|
||||||
if (this.teams.length) {
|
if (this.teams.length) {
|
||||||
this.team = this.teams[0].id
|
this.team = this.teams[0].id
|
||||||
this.teamId = this.teams[0].id
|
this.teamId = this.teams[0].id
|
||||||
|
|||||||
Reference in New Issue
Block a user