This commit is contained in:
rca 2024-07-21 22:58:03 +09:00
parent 9c7de87dd2
commit f7b576604a

View File

@ -1,7 +1,7 @@
<template> <template>
<q-page> <q-page>
<TotalComponent :tasks=tasks /> <TotalComponent :histories=histories />
<HistoryComponent :tasks=tasks /> <HistoryComponent :histories=histories />
</q-page> </q-page>
</template> </template>
@ -20,10 +20,10 @@ interface Props {
// Props // Props
const props = defineProps<Props>(); const props = defineProps<Props>();
const tasks = ref([] as HistoryItem[]); const histories = ref([] as HistoryItem[]);
getHistories(props.childId, true).then((res) => { getHistories(props.childId, true).then((res) => {
tasks.value = res; histories.value = res;
}); });
</script> </script>