hookehuyr

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

<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-15 15:27:35
* @LastEditTime: 2025-12-15 18:16:40
* @FilePath: /mlaj/src/views/teacher/checkinPage.vue
* @Description: 文件描述
-->
......@@ -411,7 +411,7 @@ const formatter = (day) => {
const onSelectDay = (day) => {
getTaskDetail(dayjs(day).format('YYYY-MM'));
// getTaskDetail(dayjs(day).format('YYYY-MM'));
// 更新当前选中的日期
const currentSelectedDate = dayjs(day).format('YYYY-MM-DD');
......@@ -651,13 +651,13 @@ onMounted(async () => {
const current_date = route.query.date;
if (current_date) {
selectedDate.value = current_date;
getTaskDetail(dayjs(current_date).format('YYYY-MM'));
// getTaskDetail(dayjs(current_date).format('YYYY-MM'));
getCheckedDates(dayjs(current_date).format('YYYY-MM'));
myRefCalendar.value?.reset(new Date(current_date));
onLoad(current_date);
} else {
selectedDate.value = dayjs().format('YYYY-MM-DD');
getTaskDetail(dayjs().format('YYYY-MM'));
// getTaskDetail(dayjs().format('YYYY-MM'));
getCheckedDates(dayjs().format('YYYY-MM'));
onLoad(dayjs().format('YYYY-MM-DD'));
}
......