fix: 이제 BettingDetail 출력 변경
- BettingInfo의 candidate가 array를 보장하지 않음 - info가 html이 아니어도 출력
This commit is contained in:
@@ -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>,
|
||||
|
||||
@@ -26,7 +26,7 @@ export type BettingInfo = {
|
||||
reqInheritancePoint: boolean;
|
||||
openYearMonth: number;
|
||||
closeYearMonth: number;
|
||||
candidates: SelectItem[];
|
||||
candidates: Record<number, SelectItem>;
|
||||
winner?: number[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user