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-06-23 13:23:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9697f0a229fbf7665afd8284b0e214353bdd823e
9697f0a2
1 parent
c238aa89
fix(teacher/formPage): 将时间选择器的默认值从固定日期改为当前日期
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/views/teacher/formPage.vue
src/views/teacher/formPage.vue
View file @
9697f0a
...
...
@@ -664,7 +664,13 @@ const openTimePicker = (chapter, type) => {
date.getDate().toString().padStart(2, '0')
];
} else {
currentChapterTime.value = ['2024', '01', '01'];
// 使用当前日期作为默认值
const today = new Date();
currentChapterTime.value = [
today.getFullYear().toString(),
(today.getMonth() + 1).toString().padStart(2, '0'),
today.getDate().toString().padStart(2, '0')
];
}
showChapterTimePicker.value = true;
...
...
Please
register
or
login
to post a comment