Skip to content

Commit

Permalink
💬 コンテスト中間発表のデータ挿入
Browse files Browse the repository at this point in the history
  • Loading branch information
Shion1305 committed Nov 4, 2023
1 parent 7c82d19 commit b71e41c
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions pages/sp/contest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,27 @@ interface RankingData {
UPDATED: string;
}
const rankingData = await useFetch("/api/contest")
.then((res) => {
if (
res.data.value.FOOD &&
res.data.value.EXHIBITION &&
res.data.value.PERFORMANCE
) {
return res.data.value as RankingData;
}
return null;
})
.catch(() => null);
// const rankingData = await useFetch("/api/contest")
// .then((res) => {
// if (
// res.data.value.FOOD &&
// res.data.value.EXHIBITION &&
// res.data.value.PERFORMANCE
// ) {
// return res.data.value as RankingData;
// }
// return null;
// })
// .catch(() => null);
const rankingData = {
FOOD: [113, 42, 97],
EXHIBITION: [83, 91, 45],
PERFORMANCE: [102, 10, 101],
DRINK: [29, 4, 12],
VISUAL: [49],
UPDATED: "11月4日(土)午前9時更新",
} as RankingData;
useHead({
title: "企画コンテスト | 23常盤祭公式HP~未来航路~",
Expand Down

0 comments on commit b71e41c

Please sign in to comment.