We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd0a14 commit 27ca520Copy full SHA for 27ca520
src/pages/lesson/index.vue
@@ -237,11 +237,12 @@ export default Vue.extend({
237
: dayjs(this.lesson.endTime).format('H:mm(M/D)')
238
},
239
240
- mounted() {
241
- this.$nextTick(function () {
242
- const data:
243
- | LessonWithId
244
- | undefined = vxm.classData.lessonsOnCurrentDate.find(
+ async mounted() {
+ const lessonList = await vxm.classData.lessonsOnCurrentDate(
+ vxm.app.currentDate
+ )
+ await this.$nextTick(function () {
245
+ const data: LessonWithId | undefined = lessonList.find(
246
(e) => this.$route.query.lessonId === e.id
247
) as LessonWithId | undefined
248
this.lesson = data ?? this.dummyLesson
0 commit comments