workaround

This commit is contained in:
rca 2024-07-22 06:02:27 +09:00
parent 2eacb07ac6
commit 2774fc58a4

View File

@ -12,7 +12,7 @@
</QTabPanel>
<QTabPanel name="tab2">
<TotalComponent :histories=histories />
<HistoryComponent :histories=histories />
<HistoryComponent :histories=histories @containPaid:checked="changeContainPaid"/>
</QTabPanel>
</QTabPanels>
<div v-else class="row justify-center">
@ -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;
});