往期球局排序处理
This commit is contained in:
@@ -82,7 +82,7 @@ const MyselfPageContent: React.FC<MyselfPageContentProps> = ({
|
|||||||
const end_time_str = end_time.replace(/\s/, "T");
|
const end_time_str = end_time.replace(/\s/, "T");
|
||||||
new Date(end_time_str).getTime() > now
|
new Date(end_time_str).getTime() > now
|
||||||
? notEndGames.push(game)
|
? notEndGames.push(game)
|
||||||
: finishedGames.push(game);
|
: finishedGames.unshift(game);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("notEndGames", notEndGames);
|
console.log("notEndGames", notEndGames);
|
||||||
|
|||||||
Reference in New Issue
Block a user