mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-26 00:34:01 +00:00
workaround
This commit is contained in:
parent
2eacb07ac6
commit
2774fc58a4
|
@ -12,7 +12,7 @@
|
||||||
</QTabPanel>
|
</QTabPanel>
|
||||||
<QTabPanel name="tab2">
|
<QTabPanel name="tab2">
|
||||||
<TotalComponent :histories=histories />
|
<TotalComponent :histories=histories />
|
||||||
<HistoryComponent :histories=histories />
|
<HistoryComponent :histories=histories @containPaid:checked="changeContainPaid"/>
|
||||||
</QTabPanel>
|
</QTabPanel>
|
||||||
</QTabPanels>
|
</QTabPanels>
|
||||||
<div v-else class="row justify-center">
|
<div v-else class="row justify-center">
|
||||||
|
@ -50,9 +50,15 @@ const isMobile = computed(() => {
|
||||||
return window.innerWidth < 600; // 600px以下をモバイルデバイスとする
|
return window.innerWidth < 600; // 600px以下をモバイルデバイスとする
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const changeContainPaid = (value: boolean) => {
|
||||||
|
getHistories(cachedChildId.value, value).then((res) => {
|
||||||
|
histories.value = res;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
const histories = ref([] as HistoryItem[]);
|
const histories = ref([] as HistoryItem[]);
|
||||||
|
|
||||||
getHistories(cachedChildId.value, true).then((res) => {
|
getHistories(cachedChildId.value, false).then((res) => { // TODO: デスクトップの場合無駄にここで2回取得してるのでなんとかする
|
||||||
histories.value = res;
|
histories.value = res;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user