fix: 국가 베팅장에서 '토너먼트'는 보여주지 않기로

This commit is contained in:
2022-04-25 02:04:31 +09:00
parent d4316edaec
commit bc63c2bb29
4 changed files with 19 additions and 4 deletions
+3 -1
View File
@@ -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
View File
@@ -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>,
+1 -1
View File
@@ -26,7 +26,7 @@ export type BettingInfo = {
reqInheritancePoint: boolean;
openYearMonth: number;
closeYearMonth: number;
candidates: Record<number, SelectItem>;
candidates: Record<string, SelectItem>;
winner?: number[];
}