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-25 16:27:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ecc350665da79b0336bcb64135f514779f42e0a9
ecc35066
1 parent
77e04a8c
fix(教师表单): 修复章节选择验证后未清空选中章节的问题
在验证章节时间有效性失败时,清空已选章节以避免用户困惑
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/teacher/formPage.vue
src/views/teacher/formPage.vue
View file @
ecc3506
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2025-01-20 10:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-06-25 1
5:49:50
* @LastEditTime: 2025-06-25 1
6:27:12
* @FilePath: /mlaj/src/views/teacher/formPage.vue
* @Description: 教师作业新增表单页面
-->
...
...
@@ -675,6 +675,7 @@ const confirmChapterSelection = () => {
const invalidChapters = selectedChapters.value.filter(chapter => !chapter.startTime || !chapter.endTime);
if (invalidChapters.length > 0) {
showToast('请为所有选中的章节设置开始和结束时间');
selectedChapters.value = '';
return;
}
...
...
@@ -684,6 +685,7 @@ const confirmChapterSelection = () => {
);
if (timeInvalidChapters.length > 0) {
showToast('存在结束时间早于开始时间的章节,请重新设置');
selectedChapters.value = '';
return;
}
...
...
Please
register
or
login
to post a comment