Skip to content

Commit

Permalink
🚧 (pages/event) データの読み込みの一時無効化
Browse files Browse the repository at this point in the history
  • Loading branch information
Shion1305 committed Oct 26, 2023
1 parent 1e6f2e6 commit c6b824e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pages/event/[id].vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { Swiper, SwiperSlide } from "swiper/vue"; // 以下swiperの設定
import events from "~/assets/data/events.json";
// import events from "~/assets/data/events.json";
import { Event } from "~/model/event";
// Import Swiper styles
import "swiper/css";
Expand All @@ -15,8 +15,20 @@ const id = route.params.id; // idが数値でない場合はトップページ
if (Number.isNaN(id)) {
await useRouter().push("/");
}
const event = events.find((e) => e.id === Number(id)) as Event;
// const event = events.find((e) => e.id === Number(id)) as Event;
const event = {
id: 1,
event_name: "test",
event_genre: 1,
org_name: "test",
org_description: "test",
website: "test",
x_id: "test",
instagram_id: "test",
facebook_id: "test",
activity_images: 1,
} as Event;
}
useHead({
title: `${event?.event_name ?? ""} | 23常盤祭公式HP~未来航路~`,
meta: [
Expand Down

0 comments on commit c6b824e

Please sign in to comment.