From c3cc248a39bcc764e0199ceb56e57cac1915e9c8 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 23 Jan 2026 14:42:21 +0100 Subject: [PATCH] Add VocabLessonView component to socialRoutes - Imported VocabLessonView component and updated the route definition to use the imported component directly instead of a dynamic import. - This change enhances code readability and maintains consistency in how components are referenced in the routing configuration. --- frontend/src/router/socialRoutes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/router/socialRoutes.js b/frontend/src/router/socialRoutes.js index f8a6f9e..e14bcdd 100644 --- a/frontend/src/router/socialRoutes.js +++ b/frontend/src/router/socialRoutes.js @@ -12,6 +12,7 @@ import VocabSubscribeView from '../views/social/VocabSubscribeView.vue'; import VocabChapterView from '../views/social/VocabChapterView.vue'; import VocabCourseListView from '../views/social/VocabCourseListView.vue'; import VocabCourseView from '../views/social/VocabCourseView.vue'; +import VocabLessonView from '../views/social/VocabLessonView.vue'; const socialRoutes = [ { @@ -102,7 +103,7 @@ const socialRoutes = [ { path: '/socialnetwork/vocab/courses/:courseId/lessons/:lessonId', name: 'VocabLesson', - component: () => import('../views/social/VocabLessonView.vue'), + component: VocabLessonView, props: true, meta: { requiresAuth: true } },