hookehuyr

refactor(teacher): 移除checkinPage中冗余的getTaskDetail调用

1 <!-- 1 <!--
2 * @Date: 2025-05-29 15:34:17 2 * @Date: 2025-05-29 15:34:17
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-12-15 15:27:35 4 + * @LastEditTime: 2025-12-15 18:16:40
5 * @FilePath: /mlaj/src/views/teacher/checkinPage.vue 5 * @FilePath: /mlaj/src/views/teacher/checkinPage.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -411,7 +411,7 @@ const formatter = (day) => { ...@@ -411,7 +411,7 @@ const formatter = (day) => {
411 411
412 412
413 const onSelectDay = (day) => { 413 const onSelectDay = (day) => {
414 - getTaskDetail(dayjs(day).format('YYYY-MM')); 414 + // getTaskDetail(dayjs(day).format('YYYY-MM'));
415 415
416 // 更新当前选中的日期 416 // 更新当前选中的日期
417 const currentSelectedDate = dayjs(day).format('YYYY-MM-DD'); 417 const currentSelectedDate = dayjs(day).format('YYYY-MM-DD');
...@@ -651,13 +651,13 @@ onMounted(async () => { ...@@ -651,13 +651,13 @@ onMounted(async () => {
651 const current_date = route.query.date; 651 const current_date = route.query.date;
652 if (current_date) { 652 if (current_date) {
653 selectedDate.value = current_date; 653 selectedDate.value = current_date;
654 - getTaskDetail(dayjs(current_date).format('YYYY-MM')); 654 + // getTaskDetail(dayjs(current_date).format('YYYY-MM'));
655 getCheckedDates(dayjs(current_date).format('YYYY-MM')); 655 getCheckedDates(dayjs(current_date).format('YYYY-MM'));
656 myRefCalendar.value?.reset(new Date(current_date)); 656 myRefCalendar.value?.reset(new Date(current_date));
657 onLoad(current_date); 657 onLoad(current_date);
658 } else { 658 } else {
659 selectedDate.value = dayjs().format('YYYY-MM-DD'); 659 selectedDate.value = dayjs().format('YYYY-MM-DD');
660 - getTaskDetail(dayjs().format('YYYY-MM')); 660 + // getTaskDetail(dayjs().format('YYYY-MM'));
661 getCheckedDates(dayjs().format('YYYY-MM')); 661 getCheckedDates(dayjs().format('YYYY-MM'));
662 onLoad(dayjs().format('YYYY-MM-DD')); 662 onLoad(dayjs().format('YYYY-MM-DD'));
663 } 663 }
......