

240822 박세훈 문제 타입 별 페이지 연결 수정
@d451f76e544845643db43b83e3614c9ef1531e87
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -79,8 +79,7 @@ |
79 | 79 |
</button> |
80 | 80 |
<p>{{ labeledItems[4].label }}</p> |
81 | 81 |
</div> |
82 |
- <div class="race-btn" |
|
83 |
- @click="[goToPage('Chapter2_7'), storeLearningId(labeledItems[3].learning_id)]"> |
|
82 |
+ <div class="race-btn" @click="[storeLearningId(labeledItems[3])]"> |
|
84 | 83 |
<div class="rabbit-running"><img src="../../../resources/img/img09_s.png" alt="" |
85 | 84 |
:style="{ display: rabbitPos[4] ? 'block' : 'none' }"></div> |
86 | 85 |
<button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
... | ... | @@ -92,8 +91,7 @@ |
92 | 91 |
</button> |
93 | 92 |
<p>{{ labeledItems[3].label }}</p> |
94 | 93 |
</div> |
95 |
- <div class="race-btn" |
|
96 |
- @click="[goToPage('Chapter2_8'), storeLearningId(labeledItems[2].learning_id)]"> |
|
94 |
+ <div class="race-btn" @click="[storeLearningId(labeledItems[2])]"> |
|
97 | 95 |
<div class="rabbit-running"><img src="../../../resources/img/img09_s.png" alt="" |
98 | 96 |
:style="{ display: rabbitPos[3] ? 'block' : 'none' }"></div> |
99 | 97 |
<button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
... | ... | @@ -591,7 +589,7 @@ |
591 | 589 |
}, |
592 | 590 |
storeLearningId(labeledItems) { |
593 | 591 |
this.$store.dispatch('updateLearningData', labeledItems) |
594 |
- if (labeledItems.label === "문제3") { |
|
592 |
+ if (labeledItems.label.startsWith('문제')) { |
|
595 | 593 |
this.handleProblemDetail(this.$store.getters.currentLearningId) |
596 | 594 |
this.goToPage(this.problemType) |
597 | 595 |
} |
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?