This commit is contained in:
rca 2024-07-21 22:48:45 +09:00
parent 1464081eda
commit ed8d26c53e

View File

@ -11,6 +11,7 @@ import HistoryComponent from 'components/HistoryComponent.vue';
import { getHistory } from 'src/api/apiService';
import { TaskBaseItem } from 'src/models/task';
import { ref } from 'vue';
import { HistoryBaseItem } from 'src/models/history';
// Props
interface Props {
@ -20,7 +21,7 @@ interface Props {
// Props
const props = defineProps<Props>();
const tasks = ref([] as TaskBaseItem[]);
const tasks = ref([] as HistoryBaseItem[]);
getHistory(props.childId).then((res) => {
tasks.value = res.list;