更新
This commit is contained in:
parent
7b9afcb2fe
commit
31eebd4def
@ -44,17 +44,17 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const taskList = ref([]);
|
const taskList = computed(() => {
|
||||||
onUpdated(() => {
|
let arr: any = [];
|
||||||
taskList.value = [];
|
props.list.forEach((item: any) => {
|
||||||
props.list.forEach((item) => {
|
arr.push({
|
||||||
taskList.value.push({
|
|
||||||
id: item.id,
|
id: item.id,
|
||||||
title: item.template_name,
|
title: item.template_name,
|
||||||
startDate: new Date(item.start_time),
|
startDate: new Date(item.start_time),
|
||||||
endDate: new Date(item.end_time),
|
endDate: new Date(item.end_time),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
return arr;
|
||||||
});
|
});
|
||||||
|
|
||||||
const emits = defineEmits(["clickItem", "initShowDate"]);
|
const emits = defineEmits(["clickItem", "initShowDate"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user