PsHooN7979
08-23
240823 박세훈 평가 문제 완료
@92383aafd33ea2b75dedd79b38f4a646c3243676
--- client/views/pages/AppStore.js
+++ client/views/pages/AppStore.js
... | ... | @@ -89,7 +89,7 @@ |
89 | 89 |
getCurrentWdBkIndex: (state) => state.currentWdBkIndex, |
90 | 90 |
}, |
91 | 91 |
mutations: { |
92 |
- |
|
92 |
+ |
|
93 | 93 |
setToken(state, token) { |
94 | 94 |
state.token = token; |
95 | 95 |
}, |
... | ... | @@ -112,9 +112,9 @@ |
112 | 112 |
state.allProblems = []; |
113 | 113 |
state.allAnswers = []; |
114 | 114 |
state.wdBookIdList = [], |
115 |
- state.currentWdBkIndex = 0; |
|
116 |
- seqNum = null; |
|
117 |
- saveStateToLocalStorage(state); |
|
115 |
+ state.currentWdBkIndex = 0; |
|
116 |
+ state.seqNum = null; |
|
117 |
+ saveStateToLocalStorage(state); |
|
118 | 118 |
}, |
119 | 119 |
|
120 | 120 |
setUser(state, userId) { |
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 |
localStorage.setItem("token", token); |
230 | 230 |
}, |
231 | 231 |
logout({ commit }) { |
232 |
- commit("clearState"); |
|
232 |
+ commit("clearState"); |
|
233 | 233 |
localStorage.removeItem("token"); |
234 | 234 |
localStorage.removeItem("vuexState"); |
235 | 235 |
}, |
--- client/views/pages/main/Chapter/Chapter3_3.vue
+++ client/views/pages/main/Chapter/Chapter3_3.vue
... | ... | @@ -126,11 +126,11 @@ |
126 | 126 |
}, |
127 | 127 |
data: this.$store.getters.getAllAnswers, |
128 | 128 |
}) |
129 |
- .then(function (res) { |
|
129 |
+ .then((res) => { |
|
130 | 130 |
console.log("problem - response : ", res.data); |
131 |
- this.goToPage("Chapter4") |
|
131 |
+ this.goToPage("Chapter4"); // 'this' correctly refers to the Vue instance |
|
132 | 132 |
}) |
133 |
- .catch(function (error) { |
|
133 |
+ .catch((error) => { |
|
134 | 134 |
console.log("problem - error : ", error); |
135 | 135 |
}); |
136 | 136 |
} else { |
--- client/views/pages/main/Chapter/Chapter4.vue
+++ client/views/pages/main/Chapter/Chapter4.vue
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 |
</div> |
55 | 55 |
<div class="text-lf"> |
56 | 56 |
<p class="title1"> |
57 |
- {{ item.prblmImfo.prblm_expln }} |
|
57 |
+ {{ item.prblmInfo.prblm_expln }} |
|
58 | 58 |
</p> |
59 | 59 |
</div> |
60 | 60 |
</div> |
... | ... | @@ -62,7 +62,7 @@ |
62 | 62 |
<div class="flex align-center" style="gap: 10px"> |
63 | 63 |
<button type="button" title="정답 확인" class="yellow-btn" @click=" |
64 | 64 |
[ |
65 |
- handleProblemDetail(item.prblmImfo), |
|
65 |
+ handleProblemDetail(item.prblmInfo), |
|
66 | 66 |
goToProblemPage( |
67 | 67 |
problemType |
68 | 68 |
), |
--- client/views/pages/main/Main_c.vue
+++ client/views/pages/main/Main_c.vue
... | ... | @@ -1,10 +1,15 @@ |
1 | 1 |
<template> |
2 |
- <router-view /> |
|
3 |
- <Footer></Footer> |
|
2 |
+ <div> |
|
3 |
+ <!-- Main content of the page --> |
|
4 |
+ <router-view></router-view> |
|
5 |
+ |
|
6 |
+ <!-- Footer that re-renders on route change --> |
|
7 |
+ <FooterComponent :key="$route.fullPath" /> |
|
8 |
+ </div> |
|
4 | 9 |
</template> |
5 | 10 |
|
6 | 11 |
<script> |
7 |
-import Footer from "../../layout/Footer.vue"; |
|
12 |
+import FooterComponent from "../../layout/Footer.vue"; |
|
8 | 13 |
|
9 | 14 |
export default { |
10 | 15 |
data() { |
... | ... | @@ -16,8 +21,9 @@ |
16 | 21 |
components: { |
17 | 22 |
// Header: Header, |
18 | 23 |
// Menu: Menu, |
19 |
- Footer: Footer, |
|
24 |
+ // Footer: Footer, |
|
20 | 25 |
// Side_t:Side_t, |
26 |
+ FooterComponent, |
|
21 | 27 |
}, |
22 | 28 |
mounted() { |
23 | 29 |
console.log("main mounted"); |
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?