
--- client/views/pages/App.vue
+++ client/views/pages/App.vue
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 |
</div> |
10 | 10 |
</div> |
11 | 11 |
<div v-else v-cloak class="user-wrap relative"> |
12 |
- <UserHeader /> |
|
12 |
+ <UserHeader v-if="path != '/login.page'"/> |
|
13 | 13 |
<div class="main-warp"> |
14 | 14 |
<router-view /> |
15 | 15 |
</div> |
... | ... | @@ -25,11 +25,17 @@ |
25 | 25 |
data: () => { |
26 | 26 |
return { |
27 | 27 |
otherWindow: false, |
28 |
+ path: "", |
|
28 | 29 |
}; |
29 | 30 |
}, |
30 | 31 |
created() {}, |
31 | 32 |
methods: {}, |
32 |
- watch: {}, |
|
33 |
+ watch: { |
|
34 |
+ $route(to, from) { |
|
35 |
+ console.log("to", to); |
|
36 |
+ this.path = to.path; |
|
37 |
+ }, |
|
38 |
+ }, |
|
33 | 39 |
computed: { |
34 | 40 |
isAdminPage() { |
35 | 41 |
// 현재 URL을 기반으로 사용자와 관리자 페이지 여부를 판단 |
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?