Skip to content

Commit

Permalink
fix: filter of period works incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
IceeAn committed Jun 1, 2024
1 parent 9ab8275 commit b511084
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function confirm() {
}
}
if(bookingStore.weeks.length + scheduleStore.calculateCourseHours(courseId) > courseStore.findCourseById(courseId).creditHour){
if(bookingStore.weeks.length + scheduleStore.calculateCourseHours(courseId).value > (courseStore.findCourseById(courseId)?.creditHour ?? 0)){
alert('错误:预约后,学时将超出课程学时。您可以在“课程管理”中修改学时。')
return false
}
Expand Down

0 comments on commit b511084

Please sign in to comment.