Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-15 18:17:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2240c33e542162859b5b22b5ce4498d53131c8ee
2240c33e
1 parent
7d590fee
refactor(teacher): 移除checkinPage中冗余的getTaskDetail调用
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/views/teacher/checkinPage.vue
src/views/teacher/checkinPage.vue
View file @
2240c33
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-15 1
5:27:35
* @LastEditTime: 2025-12-15 1
8: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'));
}
...
...
Please
register
or
login
to post a comment