
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 |
<div v-else class="main"> |
6 | 6 |
<div class="race-wrap"> |
7 | 7 |
<div class="title-box"> |
8 |
- <p class="title" style="margin-top: 7rem;">{{ roadmapData[0].unit_nm }}</p> |
|
9 |
- <p class="subtitle">{{ roadmapData[0].book_nm }}</p> |
|
8 |
+ <p class="title" style="margin-top: 7rem;">{{ titleUnitName }}</p> |
|
9 |
+ <p class="subtitle">{{ titleBookName }}</p> |
|
10 | 10 |
</div> |
11 | 11 |
<div class="race-box"> |
12 | 12 |
|
... | ... | @@ -280,6 +280,9 @@ |
280 | 280 |
rabbitCompl: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
281 | 281 |
rabbitEnd: false, |
282 | 282 |
|
283 |
+ titleUnitName: "", |
|
284 |
+ titleBookName: "", |
|
285 |
+ |
|
283 | 286 |
images: [], |
284 | 287 |
unit_id: "", |
285 | 288 |
book_id: "", |
... | ... | @@ -357,8 +360,6 @@ |
357 | 360 |
} |
358 | 361 |
|
359 | 362 |
if (this.$route.query.value) { |
360 |
- console.log(`자리 : ${this.$route.query.value}`); |
|
361 |
- |
|
362 | 363 |
this.rabbitPos[parseInt(this.$route.query.value, 10) + 1] = true |
363 | 364 |
for (var i = 0; i < this.$route.query.value; i++) { |
364 | 365 |
this.rabbitCompl[i + 1] = true |
... | ... | @@ -404,7 +405,6 @@ |
404 | 405 |
} |
405 | 406 |
} |
406 | 407 |
} |
407 |
- console.log(this.state); |
|
408 | 408 |
}) |
409 | 409 |
.catch(error => { |
410 | 410 |
console.error("Error fetching roadmap data:", error); |
... | ... | @@ -455,6 +455,8 @@ |
455 | 455 |
.then(response => { |
456 | 456 |
if (response.data.length != 0) { |
457 | 457 |
this.roadmapData = response.data; |
458 |
+ this.titleUnitName = this.roadmapData[0].unit_nm |
|
459 |
+ this.titleBookName = this.roadmapData[0].book_nm |
|
458 | 460 |
this.labeledItems = this.processedRoadmap; |
459 | 461 |
} else { |
460 | 462 |
this.state = "noProblem" |
... | ... | @@ -566,7 +568,6 @@ |
566 | 568 |
this.fetchRoadmapData(unit_id, book_id); |
567 | 569 |
this.fetchRabbit(); |
568 | 570 |
|
569 |
- this.onVideoLoaded(); |
|
570 | 571 |
this.unit_id = unit_id |
571 | 572 |
this.book_id = book_id |
572 | 573 |
|
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?