fix: 이제 BettingDetail 출력 변경

- BettingInfo의 candidate가 array를 보장하지 않음
- info가 html이 아니어도 출력
This commit is contained in:
2022-04-25 01:30:54 +09:00
parent 9b8ad5384e
commit 29f555bbca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,6 +24,7 @@
</div>
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-if="candidate.isHtml" class="info" v-html="candidate.info" />
<div v-else class="info">{{ candidate.info }}</div>
<div class="pickRate">선택율: {{ (((partialBet.get(idx) ?? 0) / pureBettingAmount) * 100).toFixed(1) }}%</div>
</div>
</div>
@@ -137,7 +138,6 @@ import { parseYearMonth } from "@/util/parseYearMonth";
import { isString, range, sum } from "lodash";
import { ref, type PropType, watch } from "vue";
const props = defineProps({
bettingID: {
type: Number as PropType<number>,
+1 -1
View File
@@ -26,7 +26,7 @@ export type BettingInfo = {
reqInheritancePoint: boolean;
openYearMonth: number;
closeYearMonth: number;
candidates: SelectItem[];
candidates: Record<number, SelectItem>;
winner?: number[];
}