

240821 권민수 학습일정 통한 대시보드 진입 시 메뉴 활성화 되지 않는 버그 해결
@360f92e003b8e2de2ed6af26db72c1e3de15391f
--- client/views/layout/Menu.vue
+++ client/views/layout/Menu.vue
... | ... | @@ -36,19 +36,19 @@ |
36 | 36 |
this.activeButton = button; |
37 | 37 |
}, |
38 | 38 |
|
39 |
- // 홈 화면이면 모든 버튼을 비활성화 |
|
39 |
+ // 경로에 따른 메뉴 버튼 설정 |
|
40 | 40 |
updateActiveButton() { |
41 | 41 |
if (this.currentRoute === '/MyPlan.page') { |
42 | 42 |
this.activeButton = 'schedule'; |
43 |
+ } else if (this.currentRoute === '/PreviewNote.page') { |
|
44 |
+ this.activeButton = ''; |
|
45 |
+ } else if (this.currentRoute === '/Dashboard.page') { |
|
46 |
+ this.activeButton = 'dashboard'; |
|
47 |
+ } else if (this.currentRoute === '/MyPage.page') { |
|
48 |
+ this.activeButton = 'mypage'; |
|
43 | 49 |
} |
44 | 50 |
}, |
45 | 51 |
|
46 |
- // 오답노트 화면이면 모든 버튼을 비활성화 |
|
47 |
- updateActiveButton() { |
|
48 |
- if (this.currentRoute === '/PreviewNote.page') { |
|
49 |
- this.activeButton = ''; |
|
50 |
- } |
|
51 |
- }, |
|
52 | 52 |
}, |
53 | 53 |
watch: { |
54 | 54 |
currentRoute() { |
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?