Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2025-01-20 10:00:00 | 3 | * @Date: 2025-01-20 10:00:00 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2025-06-25 15:49:50 | 5 | + * @LastEditTime: 2025-06-25 16:27:12 |
| 6 | * @FilePath: /mlaj/src/views/teacher/formPage.vue | 6 | * @FilePath: /mlaj/src/views/teacher/formPage.vue |
| 7 | * @Description: 教师作业新增表单页面 | 7 | * @Description: 教师作业新增表单页面 |
| 8 | --> | 8 | --> |
| ... | @@ -675,6 +675,7 @@ const confirmChapterSelection = () => { | ... | @@ -675,6 +675,7 @@ const confirmChapterSelection = () => { |
| 675 | const invalidChapters = selectedChapters.value.filter(chapter => !chapter.startTime || !chapter.endTime); | 675 | const invalidChapters = selectedChapters.value.filter(chapter => !chapter.startTime || !chapter.endTime); |
| 676 | if (invalidChapters.length > 0) { | 676 | if (invalidChapters.length > 0) { |
| 677 | showToast('请为所有选中的章节设置开始和结束时间'); | 677 | showToast('请为所有选中的章节设置开始和结束时间'); |
| 678 | + selectedChapters.value = ''; | ||
| 678 | return; | 679 | return; |
| 679 | } | 680 | } |
| 680 | 681 | ||
| ... | @@ -684,6 +685,7 @@ const confirmChapterSelection = () => { | ... | @@ -684,6 +685,7 @@ const confirmChapterSelection = () => { |
| 684 | ); | 685 | ); |
| 685 | if (timeInvalidChapters.length > 0) { | 686 | if (timeInvalidChapters.length > 0) { |
| 686 | showToast('存在结束时间早于开始时间的章节,请重新设置'); | 687 | showToast('存在结束时间早于开始时间的章节,请重新设置'); |
| 688 | + selectedChapters.value = ''; | ||
| 687 | return; | 689 | return; |
| 688 | } | 690 | } |
| 689 | 691 | ... | ... |
-
Please register or login to post a comment