import { createWebHistory, createRouter } from "vue-router"; // import App from "../App.vue"; import login from "../Login.vue" import Join from "../Join.vue" import MyPage from './main/MyPage.vue'; import MyPlan from './main/MyPlan.vue'; import PhotoBook from './main/PhotoBook.vue'; import Dashboard from './main/Dashboard.vue'; import Main from "./main/Main.vue"; import Chapter1 from "./main/Chapter/Chapter1.vue"; import Chapter1_1 from "./main/Chapter/Chapter1_1.vue"; import Chapter1_2 from "./main/Chapter/Chapter1_2.vue"; import Chapter1_3 from "./main/Chapter/Chapter1_3.vue"; import Chapter2 from "./main/Chapter/Chapter2.vue"; import Chapter2_1 from "./main/Chapter/Chapter2_1.vue"; import Chapter2_2 from "./main/Chapter/Chapter2_2.vue"; import Chapter2_3 from "./main/Chapter/Chapter2_3.vue"; import Chapter2_4 from "./main/Chapter/Chapter2_4.vue"; import Chapter2_5 from "./main/Chapter/Chapter2_5.vue"; import Chapter2_6 from "./main/Chapter/Chapter2_6.vue"; import Chapter2_7 from "./main/Chapter/Chapter2_7.vue"; import Chapter2_8 from "./main/Chapter/Chapter2_8.vue"; import Chapter2_9 from "./main/Chapter/Chapter2_9.vue"; import Chapter2_10 from "./main/Chapter/Chapter2_10.vue"; import Chapter2_11 from "./main/Chapter/Chapter2_11.vue"; import Chapter2_12 from "./main/Chapter/Chapter2_12.vue"; import Chapter2_13 from "./main/Chapter/Chapter2_13.vue"; import Chapter3 from "./main/Chapter/Chapter3.vue"; import Chapter3_1 from "./main/Chapter/Chapter3_1.vue"; import Chapter3_2 from "./main/Chapter/Chapter3_2.vue"; import Chapter3_3 from "./main/Chapter/Chapter3_3.vue"; import Chapter3_4 from "./main/Chapter/Chapter3_4.vue"; import Chapter3_5 from "./main/Chapter/Chapter3_5.vue"; import Chapter3_6 from "./main/Chapter/Chapter3_6.vue"; import Chapter3_7 from "./main/Chapter/Chapter3_7.vue"; import Chapter3_8 from "./main/Chapter/Chapter3_8.vue"; import Chapter3_9 from "./main/Chapter/Chapter3_9.vue"; import Chapter3_10 from "./main/Chapter/Chapter3_10.vue"; import Chapter3_11 from "./main/Chapter/Chapter3_11.vue"; import Chapter3_12 from "./main/Chapter/Chapter3_12.vue"; import Chapter3_13 from "./main/Chapter/Chapter3_13.vue"; import Chapter3_14 from "./main/Chapter/Chapter3_14.vue"; import Chapter3_15 from "./main/Chapter/Chapter3_15.vue"; import Chapter3_16 from "./main/Chapter/Chapter3_16.vue"; import Chapter4 from "./main/Chapter/Chapter4.vue"; import Chapter5 from "./main/Chapter/Chapter5.vue"; import Chapter6 from "./main/Chapter/Chapter6.vue"; import Chapter7 from "./main/Chapter/Chapter7.vue"; import Chapter8 from "./main/Chapter/Chapter8.vue"; import Chapter9 from "./main/Chapter/Chapter9.vue"; import Chapter10 from "./main/Chapter/Chapter10.vue"; import Chapter11 from "./main/Chapter/Chapter11.vue"; import Main_p from "./parents/Main_p.vue"; import Main_t from "./teacher/Main_t.vue"; import Board from "./teacher/Board.vue"; import noticeInsert from "./teacher/noticeInsert.vue"; import noticeDetail from "./teacher/noticeDetail.vue"; import StudentList from "./teacher/StudentList.vue"; import StudentDetail from "./teacher/StudentDetail.vue"; import textbook from "./teacher/textbook.vue"; import TextBookDetail from "./teacher/TextBookDetail.vue"; import Home from "./teacher/Home.vue"; import ClassDetail from "./teacher/ClassDetail.vue"; import TextList from "./teacher/TextList.vue"; import TextInsert from "./teacher/TextInsert.vue"; import QuestionList from "./teacher/QuestionList.vue"; import QuestionInsert from "./teacher/QuestionInsert.vue"; import VocaList from "./teacher/VocaList.vue"; import ExamList from "./teacher/ExamList.vue"; import ExamDetail from "./teacher/ExamDetail.vue"; const routes = [ { path: '/login.page', name: 'login', component: login }, { path: '/Join.page', name: 'Join', component: Join }, // { path: '/App.page', name: 'App', component: App, // children:[ // ] // }, // { path: '/Main.page', name: 'Main', component: Main}, /* 학생 */ { path: '/', name: 'Main', component: Main, children: [ { path: '/Dashboard.page', name: 'Dashboard', component: Dashboard }, { path: '/MyPage.page', name: 'MyPage', component: MyPage }, { path: '/MyPlan.page', name: 'MyPlan', component: MyPlan }, { path: '/PhotoBook.page', name: 'PhotoBook', component: PhotoBook }, ] }, { path: '/Chapter1.page', name: 'Chapter1', component: Chapter1 }, { path: '/Chapter1_1.page', name: 'Chapter1_1', component: Chapter1_1 }, { path: '/Chapter1_2.page', name: 'Chapter1_2', component: Chapter1_2 }, { path: '/Chapter1_3.page', name: 'Chapter1_3', component: Chapter1_3 }, { path: '/Chapter2.page', name: 'Chapter2', component: Chapter2 }, { path: '/Chapter2_1.page', name: 'Chapter2_1', component: Chapter2_1 }, { path: '/Chapter2_2.page', name: 'Chapter2_2', component: Chapter2_2 }, { path: '/Chapter2_3.page', name: 'Chapter2_3', component: Chapter2_3 }, { path: '/Chapter2_4.page', name: 'Chapter2_4', component: Chapter2_4 }, { path: '/Chapter2_5.page', name: 'Chapter2_5', component: Chapter2_5 }, { path: '/Chapter2_6.page', name: 'Chapter2_6', component: Chapter2_6 }, { path: '/Chapter2_7.page', name: 'Chapter2_7', component: Chapter2_7 }, { path: '/Chapter2_8.page', name: 'Chapter2_8', component: Chapter2_8 }, { path: '/Chapter2_9.page', name: 'Chapter2_9', component: Chapter2_9 }, { path: '/Chapter2_10.page', name: 'Chapter2_10', component: Chapter2_10 }, { path: '/Chapter2_11.page', name: 'Chapter2_11', component: Chapter2_11 }, { path: '/Chapter2_12.page', name: 'Chapter2_12', component: Chapter2_12 }, { path: '/Chapter2_13.page', name: 'Chapter2_13', component: Chapter2_13 }, { path: '/Chapter3.page', name: 'Chapter3', component: Chapter3 }, { path: '/Chapter3_1.page', name: 'Chapter3_1', component: Chapter3_1 }, { path: '/Chapter3_2.page', name: 'Chapter3_2', component: Chapter3_2 }, { path: '/Chapter3_3.page', name: 'Chapter3_3', component: Chapter3_3 }, { path: '/Chapter3_4.page', name: 'Chapter3_4', component: Chapter3_4 }, { path: '/Chapter3_5.page', name: 'Chapter3_5', component: Chapter3_5 }, { path: '/Chapter3_6.page', name: 'Chapter3_6', component: Chapter3_6 }, { path: '/Chapter3_7.page', name: 'Chapter3_7', component: Chapter3_7 }, { path: '/Chapter3_8.page', name: 'Chapter3_8', component: Chapter3_8 }, { path: '/Chapter3_9.page', name: 'Chapter3_9', component: Chapter3_9 }, { path: '/Chapter3_10.page', name: 'Chapter3_10', component: Chapter3_10 }, { path: '/Chapter3_11.page', name: 'Chapter3_11', component: Chapter3_11 }, { path: '/Chapter3_12.page', name: 'Chapter3_12', component: Chapter3_12 }, { path: '/Chapter3_13.page', name: 'Chapter3_13', component: Chapter3_13 }, { path: '/Chapter3_14.page', name: 'Chapter3_14', component: Chapter3_14 }, { path: '/Chapter3_15.page', name: 'Chapter3_15', component: Chapter3_15 }, { path: '/Chapter3_16.page', name: 'Chapter3_16', component: Chapter3_16 }, { path: '/Chapter4.page', name: 'Chapter4', component: Chapter4 }, { path: '/Chapter5.page', name: 'Chapter5', component: Chapter5 }, { path: '/Chapter6.page', name: 'Chapter6', component: Chapter6 }, { path: '/Chapter7.page', name: 'Chapter7', component: Chapter7 }, { path: '/Chapter8.page', name: 'Chapter8', component: Chapter8 }, { path: '/Chapter9.page', name: 'Chapter9', component: Chapter9 }, { path: '/Chapter10.page', name: 'Chapter10', component: Chapter10 }, { path: '/Chapter11.page', name: 'Chapter11', component: Chapter11 }, /* 부모님 */ { path: '/Main_p.page', name: 'Main_p', component: Main_p }, /* 선생님 */ { path: '/Main_t.page', name: 'Main_t', component: Main_t , children: [ { path: '/Board.page', name: 'Board', component: Board }, { path: '/noticeInsert.page', name: 'noticeInsert', component: noticeInsert }, { path: '/noticeDetail.page', name: 'noticeDetail', component: noticeDetail }, { path: '/Home.page', name: 'Home', component: Home }, { path: '/ClassDetail.page', name: 'ClassDetail', component: ClassDetail }, { path: '/StudentList.page', name: 'StudentList', component: StudentList }, { path: '/StudentDetail.page', name: 'StudentDetail', component: StudentDetail }, { path: '/textbook.page', name: 'textbook', component: textbook }, { path: '/TextBookDetail.page', name: 'TextBookDetail', component: TextBookDetail }, { path: '/TextList.page', name: 'TextList', component: TextList }, { path: '/TextInsert.page', name: 'TextInsert', component: TextInsert }, { path: '/QuestionList.page', name: 'QuestionList', component: QuestionList }, { path: '/QuestionInsert.page', name: 'QuestionInsert', component: QuestionInsert }, { path: '/VocaList.page', name: 'VocaList', component: VocaList }, { path: '/ExamList.page', name: 'ExamList', component: ExamList }, { path: '/ExamDetail.page', name: 'ExamDetail', component: ExamDetail }, ], }, ]; const AppRouter = createRouter({ history: createWebHistory(), routes, }); export default AppRouter;