jichoi / lms_front star
PsHooN7979 08-23
240823 박세훈 평가 문제 완료
@92383aafd33ea2b75dedd79b38f4a646c3243676
client/views/pages/AppStore.js
--- client/views/pages/AppStore.js
+++ client/views/pages/AppStore.js
@@ -89,7 +89,7 @@
         getCurrentWdBkIndex: (state) => state.currentWdBkIndex,
     },
     mutations: {
-        
+
         setToken(state, token) {
             state.token = token;
         },
@@ -112,9 +112,9 @@
             state.allProblems = [];
             state.allAnswers = [];
             state.wdBookIdList = [],
-            state.currentWdBkIndex = 0;
-            seqNum = null;
-            saveStateToLocalStorage(state);        
+                state.currentWdBkIndex = 0;
+            state.seqNum = null;
+            saveStateToLocalStorage(state);
         },
 
         setUser(state, userId) {
@@ -229,7 +229,7 @@
             localStorage.setItem("token", token);
         },
         logout({ commit }) {
-            commit("clearState"); 
+            commit("clearState");
             localStorage.removeItem("token");
             localStorage.removeItem("vuexState");
         },
client/views/pages/main/Chapter/Chapter3_3.vue
--- client/views/pages/main/Chapter/Chapter3_3.vue
+++ client/views/pages/main/Chapter/Chapter3_3.vue
@@ -126,11 +126,11 @@
           },
           data: this.$store.getters.getAllAnswers,
         })
-          .then(function (res) {
+          .then((res) => {
             console.log("problem - response : ", res.data);
-            this.goToPage("Chapter4")
+            this.goToPage("Chapter4");  // 'this' correctly refers to the Vue instance
           })
-          .catch(function (error) {
+          .catch((error) => {
             console.log("problem - error : ", error);
           });
       } else {
client/views/pages/main/Chapter/Chapter4.vue
--- client/views/pages/main/Chapter/Chapter4.vue
+++ client/views/pages/main/Chapter/Chapter4.vue
@@ -54,7 +54,7 @@
                                     </div>
                                     <div class="text-lf">
                                         <p class="title1">
-                                            {{ item.prblmImfo.prblm_expln }}
+                                            {{ item.prblmInfo.prblm_expln }}
                                         </p>
                                     </div>
                                 </div>
@@ -62,7 +62,7 @@
                                     <div class="flex align-center" style="gap: 10px">
                                         <button type="button" title="정답 확인" class="yellow-btn" @click="
                                             [
-                                                handleProblemDetail(item.prblmImfo),
+                                                handleProblemDetail(item.prblmInfo),
                                                 goToProblemPage(
                                                     problemType
                                                 ),
client/views/pages/main/Main_c.vue
--- client/views/pages/main/Main_c.vue
+++ client/views/pages/main/Main_c.vue
@@ -1,10 +1,15 @@
 <template>
-    <router-view />
-    <Footer></Footer>
+    <div>
+        <!-- Main content of the page -->
+        <router-view></router-view>
+
+        <!-- Footer that re-renders on route change -->
+        <FooterComponent :key="$route.fullPath" />
+    </div>
 </template>
 
 <script>
-import Footer from "../../layout/Footer.vue";
+import FooterComponent from "../../layout/Footer.vue";
 
 export default {
     data() {
@@ -16,8 +21,9 @@
     components: {
         //   Header: Header,
         // Menu: Menu,
-        Footer: Footer,
+        // Footer: Footer,
         // Side_t:Side_t,
+        FooterComponent,
     },
     mounted() {
         console.log("main mounted");
Add a comment
List