From 2774fc58a49a336b80c36d745e4f60f3dc40d414 Mon Sep 17 00:00:00 2001 From: rca Date: Mon, 22 Jul 2024 06:02:27 +0900 Subject: [PATCH] workaround --- src/pages/IndexPage.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index c01d14d..65d459a 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -12,7 +12,7 @@ - +
@@ -50,9 +50,15 @@ const isMobile = computed(() => { return window.innerWidth < 600; // 600px以下をモバイルデバイスとする }); +const changeContainPaid = (value: boolean) => { + getHistories(cachedChildId.value, value).then((res) => { + histories.value = res; + }); +}; + const histories = ref([] as HistoryItem[]); -getHistories(cachedChildId.value, true).then((res) => { +getHistories(cachedChildId.value, false).then((res) => { // TODO: デスクトップの場合無駄にここで2回取得してるのでなんとかする histories.value = res; });