

240823 권민수 대시보드 단어장 이동 설정
@1137284481523e62530071b171021cb903b2e261
--- client/views/pages/main/Chapter/Chapter2.vue
+++ client/views/pages/main/Chapter/Chapter2.vue
... | ... | @@ -78,8 +78,7 @@ |
78 | 78 |
</div> |
79 | 79 |
</div> |
80 | 80 |
</div> |
81 |
- <div class="next-btn" @click="goToPage('Chapter2_3')"> |
|
82 |
- <!-- @click="goToNextPage" --> |
|
81 |
+ <div class="next-btn" @click="goToNextPage"> |
|
83 | 82 |
<img src="../../../../resources/img/right.png" alt="" /> |
84 | 83 |
</div> |
85 | 84 |
</div> |
... | ... | @@ -92,7 +91,7 @@ |
92 | 91 |
export default { |
93 | 92 |
data() { |
94 | 93 |
return { |
95 |
- wdBookId: "WORD_BOOK_000000000000042", |
|
94 |
+ wdBookId: "", |
|
96 | 95 |
wordList: [], |
97 | 96 |
|
98 | 97 |
wdBookIdList: [], // 단어 컨텐츠의 단어장 id 리스트 |
... | ... | @@ -113,7 +112,7 @@ |
113 | 112 |
if (this.currentWdBkIndex - 1 < 0) { |
114 | 113 |
this.hiddenState = true; |
115 | 114 |
} |
116 |
- // this.fetchWordList(); |
|
115 |
+ this.fetchWordList(); |
|
117 | 116 |
}, |
118 | 117 |
|
119 | 118 |
async fetchWordList() { |
... | ... | @@ -249,8 +248,7 @@ |
249 | 248 |
}, |
250 | 249 |
mounted() { |
251 | 250 |
console.log("챕터2 단어장 마운트 완료"); |
252 |
- // this.pageSetting(); |
|
253 |
- this.fetchWordList(); |
|
251 |
+ this.pageSetting(); |
|
254 | 252 |
}, |
255 | 253 |
}; |
256 | 254 |
</script> |
--- client/views/pages/main/Chapter/Chapter2_3.vue
+++ client/views/pages/main/Chapter/Chapter2_3.vue
... | ... | @@ -143,7 +143,7 @@ |
143 | 143 |
if (this.currentWdBkIndex - 1 < 0) { |
144 | 144 |
this.hiddenState = true; |
145 | 145 |
} |
146 |
- // this.fetchWordList(); |
|
146 |
+ this.fetchWordList(); |
|
147 | 147 |
}, |
148 | 148 |
|
149 | 149 |
async goToPrevPage() { |
... | ... | @@ -391,8 +391,7 @@ |
391 | 391 |
}, |
392 | 392 |
}, |
393 | 393 |
mounted() { |
394 |
- // this.pageSetting(); |
|
395 |
- this.fetchWordList(); |
|
394 |
+ this.pageSetting(); |
|
396 | 395 |
}, |
397 | 396 |
beforeDestroy() { |
398 | 397 |
if (this.intervalId) { |
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -129,12 +129,7 @@ |
129 | 129 |
</div> |
130 | 130 |
<div |
131 | 131 |
class="race-btn" |
132 |
- @click=" |
|
133 |
- [ |
|
134 |
- goToPage('Chapter2_8'), |
|
135 |
- storeLearningId(labeledItems[5].learning_id), |
|
136 |
- ] |
|
137 |
- " |
|
132 |
+ @click="[storeLearningId(labeledItems[5]),]" |
|
138 | 133 |
> |
139 | 134 |
<div class="rabbit-running"> |
140 | 135 |
<img |
... | ... | @@ -351,12 +346,7 @@ |
351 | 346 |
</div> |
352 | 347 |
<div |
353 | 348 |
class="race-btn" |
354 |
- @click=" |
|
355 |
- [ |
|
356 |
- goToPage('Chapter10'), |
|
357 |
- storeLearningId(labeledItems[9].learning_id), |
|
358 |
- ] |
|
359 |
- " |
|
349 |
+ @click="[storeLearningId(labeledItems[9])]" |
|
360 | 350 |
> |
361 | 351 |
<div class="rabbit-running"> |
362 | 352 |
<img |
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?