mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-25 16:34:01 +00:00
fix wip
This commit is contained in:
parent
1464081eda
commit
ed8d26c53e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user