update,
This commit is contained in:
@@ -22,7 +22,10 @@ import FavVocabularyPage from './pages/Favorite/Vocabulary';
|
||||
import FavoriteVocabularyPage from './pages/Favorite/WordPage';
|
||||
import ConnectivesPage from './pages/Lesson/ConnectivesPage';
|
||||
import Lesson from './pages/Lesson/index';
|
||||
import LessonWordPage from './pages/Lesson/WordPage';
|
||||
|
||||
// NOTES: old version using json file
|
||||
import LessonWordPageByDb from './pages/Lesson/LessonWordPageByDb';
|
||||
import WordPage from './pages/Lesson/WordPage';
|
||||
//
|
||||
import ListeningPractice from './pages/ListeningPractice';
|
||||
import PracticeFinish from './pages/ListeningPractice/Finish';
|
||||
@@ -58,7 +61,7 @@ function RouteConfig() {
|
||||
<Route exact path={`${LESSON_LINK}/a/:act_category`}>
|
||||
<Lesson />
|
||||
</Route>
|
||||
|
||||
{/* */}
|
||||
<Route exact path={LESSON_LINK}>
|
||||
<Lesson />
|
||||
</Route>
|
||||
@@ -122,9 +125,17 @@ function RouteConfig() {
|
||||
<FavConnectivesPage />
|
||||
</Route>
|
||||
|
||||
{/* TODO: change lesson_idx to lesson_type_idx, need to modify LessonWordPage as well */}
|
||||
{/* http://localhost:5173/lesson_word_page/v/000000000000001/000000000000003/0 */}
|
||||
<Route exact path={`${LESSON_WORD_PAGE_LINK}/v/:lesson_idx/:cat_idx/:word_idx`}>
|
||||
<WordPage />
|
||||
</Route>
|
||||
|
||||
{/*
|
||||
<Route exact path={`${LESSON_WORD_PAGE_LINK}/v/:lesson_idx/:cat_idx/:word_idx`}>
|
||||
<LessonWordPage />
|
||||
</Route>
|
||||
*/}
|
||||
<Route exact path={`${LESSON_WORD_PAGE_LINK}/c/:lesson_idx/:cat_idx/:word_idx`}>
|
||||
<ConnectivesPage />
|
||||
</Route>
|
||||
|
Reference in New Issue
Block a user