添加比赛卡片的联赛键,优化实时比分请求参数,调整比分显示样式
This commit is contained in:
@@ -71,7 +71,18 @@ export function MatchCard({
|
||||
if (onPress) {
|
||||
onPress(match);
|
||||
} else {
|
||||
router.push(`/match-detail/${match.id}`);
|
||||
if (isLive) {
|
||||
router.push({
|
||||
pathname: "/live-detail/[id]",
|
||||
params: {
|
||||
id: match.id,
|
||||
league_id: match.leagueId?.toString() || "",
|
||||
sport_id: match.sportId?.toString() || "",
|
||||
},
|
||||
});
|
||||
} else {
|
||||
router.push(`/match-detail/${match.id}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user