정다정
10-25
241025 김건택 학부모페이지에서 포토북 이동
@a7d2ea20bb3b948c0702d4c8cee40bfc23dc6f63
--- client/views/pages/AppRouter.js
+++ client/views/pages/AppRouter.js
... | ... | @@ -1,108 +1,108 @@ |
1 |
-import { createWebHistory, createRouter } from "vue-router"; |
|
1 |
+import { createWebHistory, createRouter } from 'vue-router'; |
|
2 | 2 |
|
3 | 3 |
// import App from "../App.vue"; |
4 |
-import login from "../Login.vue"; |
|
5 |
-import Join from "../Join.vue"; |
|
6 |
-import MyPage from "./main/MyPage.vue"; |
|
7 |
-import MyPlan from "./main/MyPlan.vue"; |
|
8 |
-import MyPlan2 from "./main/MyPlan2.vue"; |
|
9 |
-import PhotoBook from "./main/PhotoBook.vue"; |
|
10 |
-import Dashboard from "./main/Dashboard.vue"; |
|
11 |
-import AIDashboard from "./main/AIDashboard.vue"; |
|
12 |
-import Camera from "./main/Camera.vue"; |
|
13 |
-import PhotoDesign from "./main/PhotoDesign.vue"; |
|
14 |
-import PhotoEdit from "./main/PhotoEdit.vue"; |
|
15 |
-import PreviewNote from "./main/PreviewNote.vue"; |
|
16 |
-import Main from "./main/Main.vue"; |
|
17 |
-import Main_c from "./main/Main_c.vue"; |
|
18 |
-import Chapter1 from "./main/Chapter/Chapter1.vue"; |
|
19 |
-import Chapter1_1 from "./main/Chapter/Chapter1_1.vue"; |
|
20 |
-import Chapter1_2 from "./main/Chapter/Chapter1_2.vue"; |
|
21 |
-import Chapter1_3 from "./main/Chapter/Chapter1_3.vue"; |
|
22 |
-import Chapter2 from "./main/Chapter/Chapter2.vue"; |
|
23 |
-import Chapter2_1 from "./main/Chapter/Chapter2_1.vue"; |
|
24 |
-import Chapter2_2 from "./main/Chapter/Chapter2_2.vue"; |
|
25 |
-import Chapter2_3 from "./main/Chapter/Chapter2_3.vue"; |
|
26 |
-import Chapter2_4 from "./main/Chapter/Chapter2_4.vue"; |
|
27 |
-import Chapter2_5 from "./main/Chapter/Chapter2_5.vue"; |
|
28 |
-import Chapter2_6 from "./main/Chapter/Chapter2_6.vue"; |
|
29 |
-import Chapter2_7 from "./main/Chapter/Chapter2_7.vue"; |
|
30 |
-import Chapter2_8 from "./main/Chapter/Chapter2_8.vue"; |
|
31 |
-import Chapter2_9 from "./main/Chapter/Chapter2_9.vue"; |
|
32 |
-import Chapter2_10 from "./main/Chapter/Chapter2_10.vue"; |
|
33 |
-import Chapter2_11 from "./main/Chapter/Chapter2_11.vue"; |
|
34 |
-import Chapter2_12 from "./main/Chapter/Chapter2_12.vue"; |
|
35 |
-import Chapter2_13 from "./main/Chapter/Chapter2_13.vue"; |
|
36 |
-import Chapter3 from "./main/Chapter/Chapter3.vue"; |
|
37 |
-import Chapter3_1 from "./main/Chapter/Chapter3_1.vue"; |
|
38 |
-import Chapter3_2 from "./main/Chapter/Chapter3_2.vue"; |
|
39 |
-import Chapter3_3 from "./main/Chapter/Chapter3_3.vue"; |
|
40 |
-import Chapter3_3_1 from "./main/Chapter/Chapter3_3_1.vue"; |
|
41 |
-import Chapter3_4 from "./main/Chapter/Chapter3_4.vue"; |
|
42 |
-import Chapter3_5 from "./main/Chapter/Chapter3_5.vue"; |
|
43 |
-import Chapter3_6 from "./main/Chapter/Chapter3_6.vue"; |
|
44 |
-import Chapter3_7 from "./main/Chapter/Chapter3_7.vue"; |
|
45 |
-import Chapter3_8 from "./main/Chapter/Chapter3_8.vue"; |
|
46 |
-import Chapter3_9 from "./main/Chapter/Chapter3_9.vue"; |
|
47 |
-import Chapter3_10 from "./main/Chapter/Chapter3_10.vue"; |
|
48 |
-import Chapter3_11 from "./main/Chapter/Chapter3_11.vue"; |
|
49 |
-import Chapter3_12 from "./main/Chapter/Chapter3_12.vue"; |
|
50 |
-import Chapter3_13 from "./main/Chapter/Chapter3_13.vue"; |
|
51 |
-import Chapter3_14 from "./main/Chapter/Chapter3_14.vue"; |
|
52 |
-import Chapter3_15 from "./main/Chapter/Chapter3_15.vue"; |
|
53 |
-import Chapter3_16 from "./main/Chapter/Chapter3_16.vue"; |
|
54 |
-import Chapter4 from "./main/Chapter/Chapter4.vue"; |
|
55 |
-import Chapter5 from "./main/Chapter/Chapter5.vue"; |
|
56 |
-import Chapter6 from "./main/Chapter/Chapter6.vue"; |
|
57 |
-import Chapter7 from "./main/Chapter/Chapter7.vue"; |
|
58 |
-import Chapter8 from "./main/Chapter/Chapter8.vue"; |
|
59 |
-import Chapter9 from "./main/Chapter/Chapter9.vue"; |
|
60 |
-import Chapter10 from "./main/Chapter/Chapter10.vue"; |
|
61 |
-import Chapter11 from "./main/Chapter/Chapter11.vue"; |
|
4 |
+import login from '../Login.vue'; |
|
5 |
+import Join from '../Join.vue'; |
|
6 |
+import MyPage from './main/MyPage.vue'; |
|
7 |
+import MyPlan from './main/MyPlan.vue'; |
|
8 |
+import MyPlan2 from './main/MyPlan2.vue'; |
|
9 |
+import PhotoBook from './main/PhotoBook.vue'; |
|
10 |
+import Dashboard from './main/Dashboard.vue'; |
|
11 |
+import AIDashboard from './main/AIDashboard.vue'; |
|
12 |
+import Camera from './main/Camera.vue'; |
|
13 |
+import PhotoDesign from './main/PhotoDesign.vue'; |
|
14 |
+import PhotoEdit from './main/PhotoEdit.vue'; |
|
15 |
+import PreviewNote from './main/PreviewNote.vue'; |
|
16 |
+import Main from './main/Main.vue'; |
|
17 |
+import Main_c from './main/Main_c.vue'; |
|
18 |
+import Chapter1 from './main/Chapter/Chapter1.vue'; |
|
19 |
+import Chapter1_1 from './main/Chapter/Chapter1_1.vue'; |
|
20 |
+import Chapter1_2 from './main/Chapter/Chapter1_2.vue'; |
|
21 |
+import Chapter1_3 from './main/Chapter/Chapter1_3.vue'; |
|
22 |
+import Chapter2 from './main/Chapter/Chapter2.vue'; |
|
23 |
+import Chapter2_1 from './main/Chapter/Chapter2_1.vue'; |
|
24 |
+import Chapter2_2 from './main/Chapter/Chapter2_2.vue'; |
|
25 |
+import Chapter2_3 from './main/Chapter/Chapter2_3.vue'; |
|
26 |
+import Chapter2_4 from './main/Chapter/Chapter2_4.vue'; |
|
27 |
+import Chapter2_5 from './main/Chapter/Chapter2_5.vue'; |
|
28 |
+import Chapter2_6 from './main/Chapter/Chapter2_6.vue'; |
|
29 |
+import Chapter2_7 from './main/Chapter/Chapter2_7.vue'; |
|
30 |
+import Chapter2_8 from './main/Chapter/Chapter2_8.vue'; |
|
31 |
+import Chapter2_9 from './main/Chapter/Chapter2_9.vue'; |
|
32 |
+import Chapter2_10 from './main/Chapter/Chapter2_10.vue'; |
|
33 |
+import Chapter2_11 from './main/Chapter/Chapter2_11.vue'; |
|
34 |
+import Chapter2_12 from './main/Chapter/Chapter2_12.vue'; |
|
35 |
+import Chapter2_13 from './main/Chapter/Chapter2_13.vue'; |
|
36 |
+import Chapter3 from './main/Chapter/Chapter3.vue'; |
|
37 |
+import Chapter3_1 from './main/Chapter/Chapter3_1.vue'; |
|
38 |
+import Chapter3_2 from './main/Chapter/Chapter3_2.vue'; |
|
39 |
+import Chapter3_3 from './main/Chapter/Chapter3_3.vue'; |
|
40 |
+import Chapter3_3_1 from './main/Chapter/Chapter3_3_1.vue'; |
|
41 |
+import Chapter3_4 from './main/Chapter/Chapter3_4.vue'; |
|
42 |
+import Chapter3_5 from './main/Chapter/Chapter3_5.vue'; |
|
43 |
+import Chapter3_6 from './main/Chapter/Chapter3_6.vue'; |
|
44 |
+import Chapter3_7 from './main/Chapter/Chapter3_7.vue'; |
|
45 |
+import Chapter3_8 from './main/Chapter/Chapter3_8.vue'; |
|
46 |
+import Chapter3_9 from './main/Chapter/Chapter3_9.vue'; |
|
47 |
+import Chapter3_10 from './main/Chapter/Chapter3_10.vue'; |
|
48 |
+import Chapter3_11 from './main/Chapter/Chapter3_11.vue'; |
|
49 |
+import Chapter3_12 from './main/Chapter/Chapter3_12.vue'; |
|
50 |
+import Chapter3_13 from './main/Chapter/Chapter3_13.vue'; |
|
51 |
+import Chapter3_14 from './main/Chapter/Chapter3_14.vue'; |
|
52 |
+import Chapter3_15 from './main/Chapter/Chapter3_15.vue'; |
|
53 |
+import Chapter3_16 from './main/Chapter/Chapter3_16.vue'; |
|
54 |
+import Chapter4 from './main/Chapter/Chapter4.vue'; |
|
55 |
+import Chapter5 from './main/Chapter/Chapter5.vue'; |
|
56 |
+import Chapter6 from './main/Chapter/Chapter6.vue'; |
|
57 |
+import Chapter7 from './main/Chapter/Chapter7.vue'; |
|
58 |
+import Chapter8 from './main/Chapter/Chapter8.vue'; |
|
59 |
+import Chapter9 from './main/Chapter/Chapter9.vue'; |
|
60 |
+import Chapter10 from './main/Chapter/Chapter10.vue'; |
|
61 |
+import Chapter11 from './main/Chapter/Chapter11.vue'; |
|
62 | 62 |
|
63 |
-import Main_p from "./parents/Main_p.vue"; |
|
63 |
+import Main_p from './parents/Main_p.vue'; |
|
64 |
+import PhotoBook_p from './parents/PhotoBook_p.vue'; |
|
64 | 65 |
|
65 |
-import Main_t from "./teacher/Main_t.vue"; |
|
66 |
-import Board from "./teacher/Board.vue"; |
|
67 |
-import noticeInsert from "./teacher/noticeInsert.vue"; |
|
68 |
-import noticeDetail from "./teacher/noticeDetail.vue"; |
|
69 |
-import StudentList from "./teacher/StudentList.vue"; |
|
70 |
-import StudentDetail from "./teacher/StudentDetail.vue"; |
|
71 |
-import textbook from "./teacher/textbook.vue"; |
|
72 |
-import C_Textbook from "./teacher/C_Textbook.vue"; |
|
73 |
-import C_TextBookDetail from "./teacher/C_TextBookDetail.vue"; |
|
74 |
-import C_TextList from "./teacher/C_TextList .vue"; |
|
75 |
-import C_TextInsert from "./teacher/C_TextInsert.vue"; |
|
76 |
-import C_QuestionList from "./teacher/C_QuestionList.vue"; |
|
77 |
-import C_QuestionInsert from "./teacher/C_QuestionInsert.vue"; |
|
78 |
-import C_Voca_List from "./teacher/C_Voca_List.vue"; |
|
79 |
-import C_ExamList from "./teacher/C_ExamList.vue"; |
|
80 |
-import C_ExamDetail from "./teacher/C_ExamDetail.vue"; |
|
81 |
-import C_ExamInsert from "./teacher/C_ExamInsert.vue"; |
|
82 |
-import TextBookDetail from "./teacher/TextBookDetail.vue"; |
|
83 |
-import Home from "./teacher/Home.vue"; |
|
84 |
-import ClassDetail from "./teacher/ClassDetail.vue"; |
|
85 |
-import TextList from "./teacher/TextList.vue"; |
|
86 |
-import TextInsert from "./teacher/TextInsert.vue"; |
|
87 |
-import TextDetail from "./teacher/TextDetail.vue"; |
|
88 |
-import QuestionList from "./teacher/QuestionList.vue"; |
|
89 |
-import QuestionInsert from "./teacher/QuestionInsert.vue"; |
|
90 |
-import QuestionDetail from "./teacher/QuestionDetail.vue"; |
|
91 |
-import VocaList from "./teacher/VocaList.vue"; |
|
92 |
-import VocaInsert from "./teacher/VocaInsert.vue"; |
|
93 |
-import VocaDetail from "./teacher/VocaDetail.vue"; |
|
94 |
-import ExamList from "./teacher/ExamList.vue"; |
|
95 |
-import ExamDetail from "./teacher/ExamDetail.vue"; |
|
96 |
-import ExamInsert from "./teacher/ExamInsert.vue"; |
|
97 |
-import RoadMap from "./teacher/RoadMap.vue"; |
|
66 |
+import Main_t from './teacher/Main_t.vue'; |
|
67 |
+import Board from './teacher/Board.vue'; |
|
68 |
+import noticeInsert from './teacher/noticeInsert.vue'; |
|
69 |
+import noticeDetail from './teacher/noticeDetail.vue'; |
|
70 |
+import StudentList from './teacher/StudentList.vue'; |
|
71 |
+import StudentDetail from './teacher/StudentDetail.vue'; |
|
72 |
+import textbook from './teacher/textbook.vue'; |
|
73 |
+import C_Textbook from './teacher/C_Textbook.vue'; |
|
74 |
+import C_TextBookDetail from './teacher/C_TextBookDetail.vue'; |
|
75 |
+import C_TextList from './teacher/C_TextList .vue'; |
|
76 |
+import C_TextInsert from './teacher/C_TextInsert.vue'; |
|
77 |
+import C_QuestionList from './teacher/C_QuestionList.vue'; |
|
78 |
+import C_QuestionInsert from './teacher/C_QuestionInsert.vue'; |
|
79 |
+import C_Voca_List from './teacher/C_Voca_List.vue'; |
|
80 |
+import C_ExamList from './teacher/C_ExamList.vue'; |
|
81 |
+import C_ExamDetail from './teacher/C_ExamDetail.vue'; |
|
82 |
+import C_ExamInsert from './teacher/C_ExamInsert.vue'; |
|
83 |
+import TextBookDetail from './teacher/TextBookDetail.vue'; |
|
84 |
+import Home from './teacher/Home.vue'; |
|
85 |
+import ClassDetail from './teacher/ClassDetail.vue'; |
|
86 |
+import TextList from './teacher/TextList.vue'; |
|
87 |
+import TextInsert from './teacher/TextInsert.vue'; |
|
88 |
+import TextDetail from './teacher/TextDetail.vue'; |
|
89 |
+import QuestionList from './teacher/QuestionList.vue'; |
|
90 |
+import QuestionInsert from './teacher/QuestionInsert.vue'; |
|
91 |
+import QuestionDetail from './teacher/QuestionDetail.vue'; |
|
92 |
+import VocaList from './teacher/VocaList.vue'; |
|
93 |
+import VocaInsert from './teacher/VocaInsert.vue'; |
|
94 |
+import VocaDetail from './teacher/VocaDetail.vue'; |
|
95 |
+import ExamList from './teacher/ExamList.vue'; |
|
96 |
+import ExamDetail from './teacher/ExamDetail.vue'; |
|
97 |
+import ExamInsert from './teacher/ExamInsert.vue'; |
|
98 |
+import RoadMap from './teacher/RoadMap.vue'; |
|
98 | 99 |
|
99 | 100 |
import store from './AppStore'; |
100 |
-import axios from "axios"; |
|
101 |
- |
|
101 |
+import axios from 'axios'; |
|
102 | 102 |
|
103 | 103 |
const routes = [ |
104 |
- { path: "/login.page", name: "login", component: login }, |
|
105 |
- { path: "/Join.page", name: "Join", component: Join }, |
|
104 |
+ { path: '/login.page', name: 'login', component: login }, |
|
105 |
+ { path: '/Join.page', name: 'Join', component: Join }, |
|
106 | 106 |
|
107 | 107 |
// { path: '/App.page', name: 'App', component: App, |
108 | 108 |
// children:[ |
... | ... | @@ -111,307 +111,309 @@ |
111 | 111 |
// { path: '/Main.page', name: 'Main', component: Main}, |
112 | 112 |
/* 학생 */ |
113 | 113 |
{ |
114 |
- path: "/", |
|
115 |
- name: "Main", |
|
114 |
+ path: '/', |
|
115 |
+ name: 'Main', |
|
116 | 116 |
component: Main, |
117 | 117 |
children: [ |
118 | 118 |
{ |
119 |
- path: "/Dashboard.page", |
|
120 |
- name: "Dashboard", |
|
119 |
+ path: '/Dashboard.page', |
|
120 |
+ name: 'Dashboard', |
|
121 | 121 |
component: Dashboard, |
122 | 122 |
}, |
123 | 123 |
{ |
124 |
- path: "/AIDashboard.page", |
|
125 |
- name: "AIDashboard", |
|
124 |
+ path: '/AIDashboard.page', |
|
125 |
+ name: 'AIDashboard', |
|
126 | 126 |
component: AIDashboard, |
127 | 127 |
}, |
128 |
- { path: "/MyPage.page", name: "MyPage", component: MyPage }, |
|
129 |
- { path: "/MyPlan.page", name: "MyPlan", component: MyPlan }, |
|
130 |
- { path: "/MyPlan2.page", name: "MyPlan2", component: MyPlan2 }, |
|
128 |
+ { path: '/MyPage.page', name: 'MyPage', component: MyPage }, |
|
129 |
+ { path: '/MyPlan.page', name: 'MyPlan', component: MyPlan }, |
|
130 |
+ { path: '/MyPlan2.page', name: 'MyPlan2', component: MyPlan2 }, |
|
131 | 131 |
{ |
132 |
- path: "/PhotoBook.page", |
|
133 |
- name: "PhotoBook", |
|
132 |
+ path: '/PhotoBook.page', |
|
133 |
+ name: 'PhotoBook', |
|
134 | 134 |
component: PhotoBook, |
135 | 135 |
}, |
136 | 136 |
{ |
137 |
- path: "/PreviewNote.page", |
|
138 |
- name: "PreviewNote", |
|
137 |
+ path: '/PreviewNote.page', |
|
138 |
+ name: 'PreviewNote', |
|
139 | 139 |
component: PreviewNote, |
140 | 140 |
}, |
141 | 141 |
], |
142 | 142 |
}, |
143 |
- { path: "/Camera.page", name: "Camera", component: Camera }, |
|
144 |
- { path: "/PhotoDesign.page", name: "PhotoDesign", component: PhotoDesign }, |
|
145 |
- { path: "/PhotoEdit.page", name: "PhotoEdit", component: PhotoEdit }, |
|
143 |
+ { path: '/Camera.page', name: 'Camera', component: Camera }, |
|
144 |
+ { path: '/PhotoDesign.page', name: 'PhotoDesign', component: PhotoDesign }, |
|
145 |
+ { path: '/PhotoEdit.page', name: 'PhotoEdit', component: PhotoEdit }, |
|
146 | 146 |
/* 지문 */ |
147 |
- { path: "/Chapter1.page", name: "Chapter1", component: Chapter1 }, |
|
148 |
- { path: "/Chapter1_1.page", name: "Chapter1_1", component: Chapter1_1 }, |
|
149 |
- { path: "/Chapter1_2.page", name: "Chapter1_2", component: Chapter1_2 }, |
|
150 |
- { path: "/Chapter1_3.page", name: "Chapter1_3", component: Chapter1_3 }, |
|
147 |
+ { path: '/Chapter1.page', name: 'Chapter1', component: Chapter1 }, |
|
148 |
+ { path: '/Chapter1_1.page', name: 'Chapter1_1', component: Chapter1_1 }, |
|
149 |
+ { path: '/Chapter1_2.page', name: 'Chapter1_2', component: Chapter1_2 }, |
|
150 |
+ { path: '/Chapter1_3.page', name: 'Chapter1_3', component: Chapter1_3 }, |
|
151 | 151 |
|
152 | 152 |
/* 단어장 및 지문 문제 */ |
153 |
- { path: "/Chapter2.page", name: "Chapter2", component: Chapter2 }, |
|
154 |
- { path: "/Chapter2_1.page", name: "Chapter2_1", component: Chapter2_1 }, |
|
155 |
- { path: "/Chapter2_2.page", name: "Chapter2_2", component: Chapter2_2 }, |
|
156 |
- { path: "/Chapter2_3.page", name: "Chapter2_3", component: Chapter2_3 }, |
|
157 |
- { path: "/Chapter2_4.page", name: "Chapter2_4", component: Chapter2_4 }, |
|
158 |
- { path: "/Chapter2_5.page", name: "Chapter2_5", component: Chapter2_5 }, |
|
159 |
- { path: "/Chapter2_6.page", name: "Chapter2_6", component: Chapter2_6 }, |
|
160 |
- { path: "/Chapter2_7.page", name: "Chapter2_7", component: Chapter2_7 }, |
|
161 |
- { path: "/Chapter2_8.page", name: "Chapter2_8", component: Chapter2_8 }, |
|
162 |
- { path: "/Chapter2_9.page", name: "Chapter2_9", component: Chapter2_9 }, |
|
163 |
- { path: "/Chapter2_10.page", name: "Chapter2_10", component: Chapter2_10 }, |
|
164 |
- { path: "/Chapter2_11.page", name: "Chapter2_11", component: Chapter2_11 }, |
|
165 |
- { path: "/Chapter2_12.page", name: "Chapter2_12", component: Chapter2_12 }, |
|
166 |
- { path: "/Chapter2_13.page", name: "Chapter2_13", component: Chapter2_13 }, |
|
153 |
+ { path: '/Chapter2.page', name: 'Chapter2', component: Chapter2 }, |
|
154 |
+ { path: '/Chapter2_1.page', name: 'Chapter2_1', component: Chapter2_1 }, |
|
155 |
+ { path: '/Chapter2_2.page', name: 'Chapter2_2', component: Chapter2_2 }, |
|
156 |
+ { path: '/Chapter2_3.page', name: 'Chapter2_3', component: Chapter2_3 }, |
|
157 |
+ { path: '/Chapter2_4.page', name: 'Chapter2_4', component: Chapter2_4 }, |
|
158 |
+ { path: '/Chapter2_5.page', name: 'Chapter2_5', component: Chapter2_5 }, |
|
159 |
+ { path: '/Chapter2_6.page', name: 'Chapter2_6', component: Chapter2_6 }, |
|
160 |
+ { path: '/Chapter2_7.page', name: 'Chapter2_7', component: Chapter2_7 }, |
|
161 |
+ { path: '/Chapter2_8.page', name: 'Chapter2_8', component: Chapter2_8 }, |
|
162 |
+ { path: '/Chapter2_9.page', name: 'Chapter2_9', component: Chapter2_9 }, |
|
163 |
+ { path: '/Chapter2_10.page', name: 'Chapter2_10', component: Chapter2_10 }, |
|
164 |
+ { path: '/Chapter2_11.page', name: 'Chapter2_11', component: Chapter2_11 }, |
|
165 |
+ { path: '/Chapter2_12.page', name: 'Chapter2_12', component: Chapter2_12 }, |
|
166 |
+ { path: '/Chapter2_13.page', name: 'Chapter2_13', component: Chapter2_13 }, |
|
167 | 167 |
|
168 | 168 |
/* 평가 문제 */ |
169 | 169 |
{ |
170 |
- path: "/Main_c.page", |
|
171 |
- name: "Main_c", |
|
170 |
+ path: '/Main_c.page', |
|
171 |
+ name: 'Main_c', |
|
172 | 172 |
component: Main_c, |
173 | 173 |
children: [ |
174 |
- { path: "/Chapter3.page", name: "Chapter3", component: Chapter3 }, |
|
174 |
+ { path: '/Chapter3.page', name: 'Chapter3', component: Chapter3 }, |
|
175 | 175 |
{ |
176 |
- path: "/Chapter3_1.page", |
|
177 |
- name: "Chapter3_1", |
|
176 |
+ path: '/Chapter3_1.page', |
|
177 |
+ name: 'Chapter3_1', |
|
178 | 178 |
component: Chapter3_1, |
179 | 179 |
}, |
180 | 180 |
{ |
181 |
- path: "/Chapter3_2.page", |
|
182 |
- name: "Chapter3_2", |
|
181 |
+ path: '/Chapter3_2.page', |
|
182 |
+ name: 'Chapter3_2', |
|
183 | 183 |
component: Chapter3_2, |
184 | 184 |
}, |
185 | 185 |
{ |
186 |
- path: "/Chapter3_3.page", |
|
187 |
- name: "Chapter3_3", |
|
186 |
+ path: '/Chapter3_3.page', |
|
187 |
+ name: 'Chapter3_3', |
|
188 | 188 |
component: Chapter3_3, |
189 | 189 |
}, |
190 | 190 |
{ |
191 |
- path: "/Chapter3_3_1.page", |
|
192 |
- name: "Chapter3_3_1", |
|
191 |
+ path: '/Chapter3_3_1.page', |
|
192 |
+ name: 'Chapter3_3_1', |
|
193 | 193 |
component: Chapter3_3_1, |
194 | 194 |
}, |
195 | 195 |
{ |
196 |
- path: "/Chapter3_4.page", |
|
197 |
- name: "Chapter3_4", |
|
196 |
+ path: '/Chapter3_4.page', |
|
197 |
+ name: 'Chapter3_4', |
|
198 | 198 |
component: Chapter3_4, |
199 | 199 |
}, |
200 | 200 |
{ |
201 |
- path: "/Chapter3_5.page", |
|
202 |
- name: "Chapter3_5", |
|
201 |
+ path: '/Chapter3_5.page', |
|
202 |
+ name: 'Chapter3_5', |
|
203 | 203 |
component: Chapter3_5, |
204 | 204 |
}, |
205 | 205 |
{ |
206 |
- path: "/Chapter3_6.page", |
|
207 |
- name: "Chapter3_6", |
|
206 |
+ path: '/Chapter3_6.page', |
|
207 |
+ name: 'Chapter3_6', |
|
208 | 208 |
component: Chapter3_6, |
209 | 209 |
}, |
210 | 210 |
{ |
211 |
- path: "/Chapter3_7.page", |
|
212 |
- name: "Chapter3_7", |
|
211 |
+ path: '/Chapter3_7.page', |
|
212 |
+ name: 'Chapter3_7', |
|
213 | 213 |
component: Chapter3_7, |
214 | 214 |
}, |
215 | 215 |
{ |
216 |
- path: "/Chapter3_8.page", |
|
217 |
- name: "Chapter3_8", |
|
216 |
+ path: '/Chapter3_8.page', |
|
217 |
+ name: 'Chapter3_8', |
|
218 | 218 |
component: Chapter3_8, |
219 | 219 |
}, |
220 | 220 |
{ |
221 |
- path: "/Chapter3_9.page", |
|
222 |
- name: "Chapter3_9", |
|
221 |
+ path: '/Chapter3_9.page', |
|
222 |
+ name: 'Chapter3_9', |
|
223 | 223 |
component: Chapter3_9, |
224 | 224 |
}, |
225 | 225 |
{ |
226 |
- path: "/Chapter3_10.page", |
|
227 |
- name: "Chapter3_10", |
|
226 |
+ path: '/Chapter3_10.page', |
|
227 |
+ name: 'Chapter3_10', |
|
228 | 228 |
component: Chapter3_10, |
229 | 229 |
}, |
230 | 230 |
{ |
231 |
- path: "/Chapter3_11.page", |
|
232 |
- name: "Chapter3_11", |
|
231 |
+ path: '/Chapter3_11.page', |
|
232 |
+ name: 'Chapter3_11', |
|
233 | 233 |
component: Chapter3_11, |
234 | 234 |
}, |
235 | 235 |
{ |
236 |
- path: "/Chapter3_12.page", |
|
237 |
- name: "Chapter3_12", |
|
236 |
+ path: '/Chapter3_12.page', |
|
237 |
+ name: 'Chapter3_12', |
|
238 | 238 |
component: Chapter3_12, |
239 | 239 |
}, |
240 | 240 |
{ |
241 |
- path: "/Chapter3_13.page", |
|
242 |
- name: "Chapter3_13", |
|
241 |
+ path: '/Chapter3_13.page', |
|
242 |
+ name: 'Chapter3_13', |
|
243 | 243 |
component: Chapter3_13, |
244 | 244 |
}, |
245 | 245 |
{ |
246 |
- path: "/Chapter3_14.page", |
|
247 |
- name: "Chapter3_14", |
|
246 |
+ path: '/Chapter3_14.page', |
|
247 |
+ name: 'Chapter3_14', |
|
248 | 248 |
component: Chapter3_14, |
249 | 249 |
}, |
250 | 250 |
{ |
251 |
- path: "/Chapter3_15.page", |
|
252 |
- name: "Chapter3_15", |
|
251 |
+ path: '/Chapter3_15.page', |
|
252 |
+ name: 'Chapter3_15', |
|
253 | 253 |
component: Chapter3_15, |
254 | 254 |
}, |
255 | 255 |
], |
256 | 256 |
}, |
257 | 257 |
/* 설문 조사 페이지*/ |
258 |
- { path: "/Chapter3_16.page", name: "Chapter3_16", component: Chapter3_16 }, |
|
258 |
+ { path: '/Chapter3_16.page', name: 'Chapter3_16', component: Chapter3_16 }, |
|
259 | 259 |
/* 평가 결과 페이지*/ |
260 |
- { path: "/Chapter4.page", name: "Chapter4", component: Chapter4 }, |
|
260 |
+ { path: '/Chapter4.page', name: 'Chapter4', component: Chapter4 }, |
|
261 | 261 |
|
262 |
- { path: "/Chapter5.page", name: "Chapter5", component: Chapter5 }, |
|
263 |
- { path: "/Chapter6.page", name: "Chapter6", component: Chapter6 }, |
|
264 |
- { path: "/Chapter7.page", name: "Chapter7", component: Chapter7 }, |
|
265 |
- { path: "/Chapter8.page", name: "Chapter8", component: Chapter8 }, |
|
266 |
- { path: "/Chapter9.page", name: "Chapter9", component: Chapter9 }, |
|
267 |
- { path: "/Chapter10.page", name: "Chapter10", component: Chapter10 }, |
|
268 |
- { path: "/Chapter11.page", name: "Chapter11", component: Chapter11 }, |
|
262 |
+ { path: '/Chapter5.page', name: 'Chapter5', component: Chapter5 }, |
|
263 |
+ { path: '/Chapter6.page', name: 'Chapter6', component: Chapter6 }, |
|
264 |
+ { path: '/Chapter7.page', name: 'Chapter7', component: Chapter7 }, |
|
265 |
+ { path: '/Chapter8.page', name: 'Chapter8', component: Chapter8 }, |
|
266 |
+ { path: '/Chapter9.page', name: 'Chapter9', component: Chapter9 }, |
|
267 |
+ { path: '/Chapter10.page', name: 'Chapter10', component: Chapter10 }, |
|
268 |
+ { path: '/Chapter11.page', name: 'Chapter11', component: Chapter11 }, |
|
269 | 269 |
|
270 | 270 |
/* 부모님 */ |
271 |
- { path: "/Main_p.page", name: "Main_p", component: Main_p }, |
|
271 |
+ { path: '/Main_p.page', name: 'Main_p', component: Main_p }, |
|
272 |
+ { path: '/PhotoBook_p.page', name: 'PhotoBook_p', component: PhotoBook_p }, |
|
273 |
+ |
|
272 | 274 |
/* 선생님 */ |
273 | 275 |
{ |
274 |
- path: "/Main_t.page", |
|
275 |
- name: "Main_t", |
|
276 |
+ path: '/Main_t.page', |
|
277 |
+ name: 'Main_t', |
|
276 | 278 |
component: Main_t, |
277 | 279 |
children: [ |
278 |
- { path: "/Board.page", name: "Board", component: Board }, |
|
280 |
+ { path: '/Board.page', name: 'Board', component: Board }, |
|
279 | 281 |
{ |
280 |
- path: "/noticeInsert.page", |
|
281 |
- name: "noticeInsert", |
|
282 |
+ path: '/noticeInsert.page', |
|
283 |
+ name: 'noticeInsert', |
|
282 | 284 |
component: noticeInsert, |
283 | 285 |
}, |
284 | 286 |
{ |
285 |
- path: "/noticeDetail.page", |
|
286 |
- name: "noticeDetail", |
|
287 |
+ path: '/noticeDetail.page', |
|
288 |
+ name: 'noticeDetail', |
|
287 | 289 |
component: noticeDetail, |
288 | 290 |
}, |
289 |
- { path: "/Home.page", name: "Home", component: Home }, |
|
291 |
+ { path: '/Home.page', name: 'Home', component: Home }, |
|
290 | 292 |
{ |
291 |
- path: "/ClassDetail.page", |
|
292 |
- name: "ClassDetail", |
|
293 |
+ path: '/ClassDetail.page', |
|
294 |
+ name: 'ClassDetail', |
|
293 | 295 |
component: ClassDetail, |
294 | 296 |
}, |
295 | 297 |
{ |
296 |
- path: "/StudentList.page", |
|
297 |
- name: "StudentList", |
|
298 |
+ path: '/StudentList.page', |
|
299 |
+ name: 'StudentList', |
|
298 | 300 |
component: StudentList, |
299 | 301 |
}, |
300 | 302 |
{ |
301 |
- path: "/StudentDetail.page", |
|
302 |
- name: "StudentDetail", |
|
303 |
+ path: '/StudentDetail.page', |
|
304 |
+ name: 'StudentDetail', |
|
303 | 305 |
component: StudentDetail, |
304 | 306 |
}, |
305 | 307 |
{ |
306 |
- path: "/C_Textbook.page", |
|
307 |
- name: "C_Textbook", |
|
308 |
+ path: '/C_Textbook.page', |
|
309 |
+ name: 'C_Textbook', |
|
308 | 310 |
component: C_Textbook, |
309 | 311 |
}, |
310 |
- { path: "/textbook.page", name: "textbook", component: textbook }, |
|
312 |
+ { path: '/textbook.page', name: 'textbook', component: textbook }, |
|
311 | 313 |
{ |
312 |
- path: "/TextBookDetail.page", |
|
313 |
- name: "TextBookDetail", |
|
314 |
+ path: '/TextBookDetail.page', |
|
315 |
+ name: 'TextBookDetail', |
|
314 | 316 |
component: TextBookDetail, |
315 | 317 |
}, |
316 | 318 |
{ |
317 |
- path: "/C_TextBookDetail.page", |
|
318 |
- name: "C_TextBookDetail", |
|
319 |
+ path: '/C_TextBookDetail.page', |
|
320 |
+ name: 'C_TextBookDetail', |
|
319 | 321 |
component: C_TextBookDetail, |
320 | 322 |
}, |
321 |
- { path: "/TextList.page", name: "TextList", component: TextList }, |
|
323 |
+ { path: '/TextList.page', name: 'TextList', component: TextList }, |
|
322 | 324 |
{ |
323 |
- path: "/TextInsert.page", |
|
324 |
- name: "TextInsert", |
|
325 |
+ path: '/TextInsert.page', |
|
326 |
+ name: 'TextInsert', |
|
325 | 327 |
component: TextInsert, |
326 | 328 |
}, |
327 | 329 |
{ |
328 |
- path: "/TextDetail.page", |
|
329 |
- name: "TextDetail", |
|
330 |
+ path: '/TextDetail.page', |
|
331 |
+ name: 'TextDetail', |
|
330 | 332 |
component: TextDetail, |
331 | 333 |
}, |
332 | 334 |
{ |
333 |
- path: "/QuestionList.page", |
|
334 |
- name: "QuestionList", |
|
335 |
+ path: '/QuestionList.page', |
|
336 |
+ name: 'QuestionList', |
|
335 | 337 |
component: QuestionList, |
336 | 338 |
}, |
337 | 339 |
{ |
338 |
- path: "/QuestionInsert.page", |
|
339 |
- name: "QuestionInsert", |
|
340 |
+ path: '/QuestionInsert.page', |
|
341 |
+ name: 'QuestionInsert', |
|
340 | 342 |
component: QuestionInsert, |
341 | 343 |
}, |
342 | 344 |
{ |
343 |
- path: "/QuestionDetail.page", |
|
344 |
- name: "QuestionDetail", |
|
345 |
+ path: '/QuestionDetail.page', |
|
346 |
+ name: 'QuestionDetail', |
|
345 | 347 |
component: QuestionDetail, |
346 | 348 |
}, |
347 |
- { path: "/VocaList.page", name: "VocaList", component: VocaList }, |
|
349 |
+ { path: '/VocaList.page', name: 'VocaList', component: VocaList }, |
|
348 | 350 |
{ |
349 |
- path: "/VocaInsert.page", |
|
350 |
- name: "VocaInsert", |
|
351 |
+ path: '/VocaInsert.page', |
|
352 |
+ name: 'VocaInsert', |
|
351 | 353 |
component: VocaInsert, |
352 | 354 |
}, |
353 | 355 |
{ |
354 |
- path: "/VocaDetail.page", |
|
355 |
- name: "VocaDetail", |
|
356 |
+ path: '/VocaDetail.page', |
|
357 |
+ name: 'VocaDetail', |
|
356 | 358 |
component: VocaDetail, |
357 | 359 |
}, |
358 |
- { path: "/ExamList.page", name: "ExamList", component: ExamList }, |
|
360 |
+ { path: '/ExamList.page', name: 'ExamList', component: ExamList }, |
|
359 | 361 |
{ |
360 |
- path: "/ExamDetail.page", |
|
361 |
- name: "ExamDetail", |
|
362 |
+ path: '/ExamDetail.page', |
|
363 |
+ name: 'ExamDetail', |
|
362 | 364 |
component: ExamDetail, |
363 | 365 |
}, |
364 | 366 |
{ |
365 |
- path: "/ExamInsert.page", |
|
366 |
- name: "ExamInsert", |
|
367 |
+ path: '/ExamInsert.page', |
|
368 |
+ name: 'ExamInsert', |
|
367 | 369 |
component: ExamInsert, |
368 | 370 |
}, |
369 | 371 |
{ |
370 |
- path: "/C_TextList.page", |
|
371 |
- name: "C_TextList", |
|
372 |
+ path: '/C_TextList.page', |
|
373 |
+ name: 'C_TextList', |
|
372 | 374 |
component: C_TextList, |
373 | 375 |
}, |
374 | 376 |
{ |
375 |
- path: "/C_TextInsert.page", |
|
376 |
- name: "C_TextInsert", |
|
377 |
+ path: '/C_TextInsert.page', |
|
378 |
+ name: 'C_TextInsert', |
|
377 | 379 |
component: C_TextInsert, |
378 | 380 |
}, |
379 | 381 |
{ |
380 |
- path: "/C_QuestionList.page", |
|
381 |
- name: "C_QuestionList", |
|
382 |
+ path: '/C_QuestionList.page', |
|
383 |
+ name: 'C_QuestionList', |
|
382 | 384 |
component: C_QuestionList, |
383 | 385 |
}, |
384 | 386 |
{ |
385 |
- path: "/C_QuestionInsert.page", |
|
386 |
- name: "C_QuestionInsert", |
|
387 |
+ path: '/C_QuestionInsert.page', |
|
388 |
+ name: 'C_QuestionInsert', |
|
387 | 389 |
component: C_QuestionInsert, |
388 | 390 |
}, |
389 | 391 |
{ |
390 |
- path: "/C_Voca_List.page", |
|
391 |
- name: "C_Voca_List", |
|
392 |
+ path: '/C_Voca_List.page', |
|
393 |
+ name: 'C_Voca_List', |
|
392 | 394 |
component: C_Voca_List, |
393 | 395 |
}, |
394 | 396 |
{ |
395 |
- path: "/C_ExamList.page", |
|
396 |
- name: "C_ExamList", |
|
397 |
+ path: '/C_ExamList.page', |
|
398 |
+ name: 'C_ExamList', |
|
397 | 399 |
component: C_ExamList, |
398 | 400 |
}, |
399 | 401 |
{ |
400 |
- path: "/C_ExamDetail.page", |
|
401 |
- name: "C_ExamDetail", |
|
402 |
+ path: '/C_ExamDetail.page', |
|
403 |
+ name: 'C_ExamDetail', |
|
402 | 404 |
component: C_ExamDetail, |
403 | 405 |
}, |
404 | 406 |
{ |
405 |
- path: "/C_ExamInsert.page", |
|
406 |
- name: "C_ExamInsert", |
|
407 |
+ path: '/C_ExamInsert.page', |
|
408 |
+ name: 'C_ExamInsert', |
|
407 | 409 |
component: C_ExamInsert, |
408 | 410 |
}, |
409 | 411 |
|
410 |
- { path: "/RoadMap.page", name: "RoadMap", component: RoadMap }, |
|
412 |
+ { path: '/RoadMap.page', name: 'RoadMap', component: RoadMap }, |
|
411 | 413 |
|
412 | 414 |
{ |
413 |
- path: "/TextDetail.page", |
|
414 |
- name: "TextDetail", |
|
415 |
+ path: '/TextDetail.page', |
|
416 |
+ name: 'TextDetail', |
|
415 | 417 |
component: TextDetail, |
416 | 418 |
}, |
417 | 419 |
], |
... | ... | @@ -426,7 +428,7 @@ |
426 | 428 |
AppRouter.beforeEach((to, from, next) => { |
427 | 429 |
const token = localStorage.getItem('token'); |
428 | 430 |
|
429 |
- if (!token && (to.name !== 'login' && to.name !== 'Join')) { |
|
431 |
+ if (!token && to.name !== 'login' && to.name !== 'Join') { |
|
430 | 432 |
// 토큰이 없고 로그인 페이지가 아닐 경우 로그인 페이지로 리다이렉트 |
431 | 433 |
next({ name: 'login' }); |
432 | 434 |
} else if (token) { |
... | ... | @@ -437,40 +439,42 @@ |
437 | 439 |
const base64 = payload.replace(/-/g, '+').replace(/_/g, '/'); |
438 | 440 |
|
439 | 441 |
const jsonPayload = decodeURIComponent( |
440 |
- Array.prototype.map.call(atob(base64), c => { |
|
441 |
- return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); |
|
442 |
- }).join('') |
|
442 |
+ Array.prototype.map |
|
443 |
+ .call(atob(base64), (c) => { |
|
444 |
+ return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); |
|
445 |
+ }) |
|
446 |
+ .join('') |
|
443 | 447 |
); |
444 | 448 |
|
445 | 449 |
const userInfo = JSON.parse(jsonPayload); |
446 |
- const teacherRoutes = routes[35].children.map(route => route.path); |
|
450 |
+ const teacherRoutes = routes[36].children.map((route) => route.path); |
|
447 | 451 |
|
448 | 452 |
if (userInfo.author[0].authority === 'STUDENT') { |
449 | 453 |
if (teacherRoutes.includes(to.path) || to.name === 'Main_p') { |
450 |
- next({ name: 'MyPlan' }); |
|
454 |
+ next({ name: 'MyPlan' }); |
|
451 | 455 |
} else { |
452 | 456 |
next(); // 다른 페이지로 접근 허용 |
453 | 457 |
} |
454 | 458 |
} else if (userInfo.author[0].authority === 'TEACHER') { |
455 | 459 |
if (!teacherRoutes.includes(to.path)) { |
456 |
- next({ name: 'Home' }); |
|
460 |
+ next({ name: 'Home' }); |
|
457 | 461 |
} else { |
458 | 462 |
next(); |
459 | 463 |
} |
460 | 464 |
} else if (userInfo.author[0].authority === 'PARENT') { |
461 |
- if(to.name === 'PhotoBook'){ |
|
465 |
+ if (to.name === 'PhotoBook_p') { |
|
462 | 466 |
next(); |
463 | 467 |
} |
464 |
- if (to.name !== 'Main_p' ) { |
|
468 |
+ if (to.name !== 'Main_p') { |
|
465 | 469 |
next({ name: 'Main_p' }); |
466 |
- } else { |
|
467 |
- next(); |
|
470 |
+ } else { |
|
471 |
+ next(); |
|
468 | 472 |
} |
469 | 473 |
} else { |
470 |
- next(); |
|
474 |
+ next(); |
|
471 | 475 |
} |
472 | 476 |
} else { |
473 |
- next(); |
|
477 |
+ next(); |
|
474 | 478 |
} |
475 | 479 |
}); |
476 | 480 |
|
--- client/views/pages/parents/Main_p.vue
+++ client/views/pages/parents/Main_p.vue
... | ... | @@ -99,7 +99,7 @@ |
99 | 99 |
<div class="text mt10"> |
100 | 100 |
<p class="title1 mb10">{{ studentInfo.studentName }}의 사진첩</p> |
101 | 101 |
<button |
102 |
- @click="goToPage('PhotoBook')" |
|
102 |
+ @click="goToPage('PhotoBook_p')" |
|
103 | 103 |
type="button" |
104 | 104 |
title="글쓰기" |
105 | 105 |
class="new-btn" |
+++ client/views/pages/parents/PhotoBook_p.vue
... | ... | @@ -0,0 +1,9 @@ |
1 | +<template lang=""> | |
2 | + <div> | |
3 | + <p>포토북</p> | |
4 | + </div> | |
5 | +</template> | |
6 | +<script> | |
7 | +export default {}; | |
8 | +</script> | |
9 | +<style lang=""></style> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?