fix: 국가 베팅장에서 '토너먼트'는 보여주지 않기로
This commit is contained in:
@@ -55,7 +55,9 @@ function addToast(msg: ToastType) {
|
||||
console.log("시작!");
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const result = await SammoAPI.Betting.GetBettingList();
|
||||
const result = await SammoAPI.Betting.GetBettingList({
|
||||
req: 'bettingNation'
|
||||
});
|
||||
year.value = result.year;
|
||||
month.value = result.month;
|
||||
yearMonth.value = joinYearMonth(result.year, result.month);
|
||||
|
||||
+3
-1
@@ -25,7 +25,9 @@ const apiRealPath = {
|
||||
GetBettingDetail: NumVar('betting_id',
|
||||
GET as APICallT<undefined, BettingDetailResponse>
|
||||
),
|
||||
GetBettingList: GET as APICallT<undefined, BettingListResponse>,
|
||||
GetBettingList: GET as APICallT<{
|
||||
req?: 'bettingNation' | 'tournament'
|
||||
}, BettingListResponse>,
|
||||
},
|
||||
Command: {
|
||||
GetReservedCommand: GET as APICallT<undefined, ReservedCommandResponse>,
|
||||
|
||||
@@ -26,7 +26,7 @@ export type BettingInfo = {
|
||||
reqInheritancePoint: boolean;
|
||||
openYearMonth: number;
|
||||
closeYearMonth: number;
|
||||
candidates: Record<number, SelectItem>;
|
||||
candidates: Record<string, SelectItem>;
|
||||
winner?: number[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user