From 4472cd0bdc5ec4bafa00512877302e383b5b59ad Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 9 Mar 2023 02:48:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B0=80=EC=98=A4=ED=94=88=20=EA=B8=B0?= =?UTF-8?q?=EA=B0=84=EC=97=90=20PageFront=EC=97=90=20=EC=95=88=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=EC=A0=95=EB=B3=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/components/GameInfo.vue | 8 +++----- hwe/ts/defs/API/Global.ts | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/hwe/ts/components/GameInfo.vue b/hwe/ts/components/GameInfo.vue index b9c8424d..39db0aa3 100644 --- a/hwe/ts/components/GameInfo.vue +++ b/hwe/ts/components/GameInfo.vue @@ -26,7 +26,7 @@ 현재: {{ globalInfo.year }}年 {{ globalInfo.month }}月 ({{ globalInfo.turnterm }}분 턴 서버)
- 전체 접속자 수: {{ globalInfo.onlineUserCnt.toLocaleString() }}명 + 전체 접속자 수: {{ (globalInfo.onlineUserCnt ?? 0).toLocaleString() }}명
턴당 갱신횟수: {{ globalInfo.apiLimit.toLocaleString() }}회 @@ -110,7 +110,7 @@ const tournamentStep = ref({ }); const tournamentTime = ref(new Date()); -function updateFrontInfo(frontInfo: GetFrontInfoResponse){ +function updateFrontInfo(frontInfo: GetFrontInfoResponse) { const global = frontInfo.global; globalInfo.value = global; @@ -133,8 +133,7 @@ function updateFrontInfo(frontInfo: GetFrontInfoResponse){ tournamentTime.value = parseTime(global.tournamentTime); } -watch(frontInfo, updateFrontInfo, {immediate: true}); - +watch(frontInfo, updateFrontInfo, { immediate: true }); diff --git a/hwe/ts/defs/API/Global.ts b/hwe/ts/defs/API/Global.ts index 4353b11d..dd130c2d 100644 --- a/hwe/ts/defs/API/Global.ts +++ b/hwe/ts/defs/API/Global.ts @@ -122,8 +122,8 @@ export type GetFrontInfoResponse = { lastVoteID: number; develCost: number; noticeMsg: number; - onlineNations: string; //TODO: string[]으로 변경 - onlineUserCnt: number; + onlineNations: string | null; //TODO: string[]으로 변경 + onlineUserCnt: number | null; apiLimit: number; auctionCount: number; isTournamentActive: boolean;