
250530 하석형 로그인페이지에서 로고 클릭 시 홈으로 이동, 비로그인 시 헤더에 "님" 삭제
@73b5ff5e94e7e6cd830eaea0ec60cd3c6f610c84
--- client/views/layout/UserHeader.vue
+++ client/views/layout/UserHeader.vue
... | ... | @@ -14,12 +14,14 @@ |
14 | 14 |
</div> |
15 | 15 |
<UserMenu /> |
16 | 16 |
<div class="user-info "> |
17 |
- <div class="flex align-center"> |
|
17 |
+ <div v-if="mbrId" class="flex align-center"> |
|
18 | 18 |
<button class="user-name cursor" @click="fnLink"> |
19 | 19 |
{{ mbrNm }}님 |
20 | 20 |
</button> |
21 |
- <button v-if="mbrId" class="logout-btn" @click="fnlogOut">로그아웃</button> |
|
22 |
- <button v-else class="logout-btn" @click="fnlogin">로그인</button> |
|
21 |
+ <button class="logout-btn" @click="fnlogOut">로그아웃</button> |
|
22 |
+ </div> |
|
23 |
+ <div v-else class="flex align-center"> |
|
24 |
+ <button class="login-btn" @click="fnlogin">로그인</button> |
|
23 | 25 |
</div> |
24 | 26 |
</div> |
25 | 27 |
<!-- <div class="flex justify-end align-center user-info-wrap"> |
--- client/views/pages/login/AdminLogin.vue
+++ client/views/pages/login/AdminLogin.vue
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 |
'login-title': true, |
14 | 14 |
'user-login': !isAdminPage, |
15 | 15 |
}"> |
16 |
- LOGIN |
|
16 |
+ <router-link :to="{ path: $filters.ctxPath('/') }">LOGIN(홈으로 이동)</router-link> |
|
17 | 17 |
</div> |
18 | 18 |
<div class="form-group"> |
19 | 19 |
<label for="id" class="login-label">아이디</label> |
--- client/views/pages/login/Login.vue
+++ client/views/pages/login/Login.vue
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 |
<div class="login-wrap" v-if="!loginStep1 && !loginStep2"> |
13 | 13 |
<div class="login"> |
14 | 14 |
<div :class="{ 'login-title': true, 'user-login': !isAdminPage }"> |
15 |
- LOGIN |
|
15 |
+ <router-link :to="{ path: $filters.ctxPath('/') }">LOGIN(홈으로 이동)</router-link> |
|
16 | 16 |
</div> |
17 | 17 |
|
18 | 18 |
<!-- 아이디/비밀번호 입력 --> |
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?