実装修正

This commit is contained in:
rca 2024-07-21 22:56:33 +09:00
parent 0632c45274
commit 93c71e5135

View File

@ -12,6 +12,8 @@ import { getHistory } from 'src/api/apiService';
import { TaskBaseItem } from 'src/models/task';
import { ref } from 'vue';
import { HistoryBaseItem } from 'src/models/history';
import { getHistories } from 'src/service/historyService';
import { HistoryItem } from 'src/models/internal';
// Props
interface Props {
@ -21,10 +23,10 @@ interface Props {
// Props
const props = defineProps<Props>();
const tasks = ref([] as HistoryBaseItem[]);
const tasks = ref([] as HistoryItem[]);
getHistory(props.childId).then((res) => {
tasks.value = res.list;
getHistories(props.childId, true).then((res) => {
tasks.value = res;
});
</script>