mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-26 00:34:01 +00:00
実装修正
This commit is contained in:
parent
0632c45274
commit
93c71e5135
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user