jichoi / lms_front star
woals 2024-08-23
240823 권민수 대시보드 단어장 이동 설정
@1137284481523e62530071b171021cb903b2e261
client/views/pages/main/Chapter/Chapter2.vue
--- client/views/pages/main/Chapter/Chapter2.vue
+++ client/views/pages/main/Chapter/Chapter2.vue
@@ -78,8 +78,7 @@
           </div>
         </div>
       </div>
-      <div class="next-btn" @click="goToPage('Chapter2_3')">
-        <!-- @click="goToNextPage" -->
+      <div class="next-btn" @click="goToNextPage">
         <img src="../../../../resources/img/right.png" alt="" />
       </div>
     </div>
@@ -92,7 +91,7 @@
 export default {
   data() {
     return {
-      wdBookId: "WORD_BOOK_000000000000042",
+      wdBookId: "",
       wordList: [],
 
       wdBookIdList: [], // 단어 컨텐츠의 단어장 id 리스트
@@ -113,7 +112,7 @@
       if (this.currentWdBkIndex - 1 < 0) {
         this.hiddenState = true;
       }
-      // this.fetchWordList();
+      this.fetchWordList();
     },
 
     async fetchWordList() {
@@ -249,8 +248,7 @@
   },
   mounted() {
     console.log("챕터2 단어장 마운트 완료");
-    // this.pageSetting();
-    this.fetchWordList();
+    this.pageSetting();
   },
 };
 </script>
client/views/pages/main/Chapter/Chapter2_3.vue
--- client/views/pages/main/Chapter/Chapter2_3.vue
+++ client/views/pages/main/Chapter/Chapter2_3.vue
@@ -143,7 +143,7 @@
       if (this.currentWdBkIndex - 1 < 0) {
         this.hiddenState = true;
       }
-      // this.fetchWordList();
+      this.fetchWordList();
     },
 
     async goToPrevPage() {
@@ -391,8 +391,7 @@
     },
   },
   mounted() {
-    // this.pageSetting();
-    this.fetchWordList();
+    this.pageSetting();
   },
   beforeDestroy() {
     if (this.intervalId) {
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -129,12 +129,7 @@
           </div>
           <div
             class="race-btn"
-            @click="
-              [
-                goToPage('Chapter2_8'),
-                storeLearningId(labeledItems[5].learning_id),
-              ]
-            "
+            @click="[storeLearningId(labeledItems[5]),]"
           >
             <div class="rabbit-running">
               <img
@@ -351,12 +346,7 @@
           </div>
           <div
             class="race-btn"
-            @click="
-              [
-                goToPage('Chapter10'),
-                storeLearningId(labeledItems[9].learning_id),
-              ]
-            "
+            @click="[storeLearningId(labeledItems[9])]"
           >
             <div class="rabbit-running">
               <img
Add a comment
List