Skip to content

Commit 37ff4c5

Browse files
committed
♻️ [refactor] : 비밀번호 보기 제거
1 parent 52cdb1d commit 37ff4c5

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

src/views/LoginView.vue

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,14 @@
2424
required
2525
class="input-box" />
2626
</div>
27-
<div class="flex relative mb-8 items-center">
27+
<div class="mb-8">
2828
<input
29-
:type="passwordVisible ? 'text' : 'password'"
29+
type="password"
3030
id="password"
3131
v-model="password"
3232
placeholder="비밀번호를 입력해주세요"
3333
required
3434
class="input-box" />
35-
<div class="absolute px-2 right-4 items-center justify-center">
36-
<button
37-
type="button"
38-
@click="togglePasswordVisibility"
39-
class="flex items-center">
40-
<CommonIcons :name="passwordVisible ? onEyeIcon : offEyeIcon" />
41-
</button>
42-
</div>
4335
</div>
4436
<button
4537
type="submit"
@@ -65,8 +57,6 @@ import { useMemberStore } from '@/stores/member'
6557
import TitleContainer from '@/components/common/TitleContainer.vue'
6658
import Cookies from 'js-cookie'
6759
import ModalView from '@/components/ModalView.vue'
68-
import CommonIcons from '@/components/common/CommonIcons.vue'
69-
import { offEyeIcon, onEyeIcon } from '@/constants/iconPath'
7060
7161
const router = useRouter()
7262
@@ -79,12 +69,6 @@ const messageBody = ref('')
7969
8070
const isModalVisible = ref(false)
8171
82-
const passwordVisible = ref(false)
83-
84-
const togglePasswordVisibility = () => {
85-
passwordVisible.value = !passwordVisible.value
86-
}
87-
8872
const closeModal = () => {
8973
isModalVisible.value = false
9074
}

0 commit comments

Comments
 (0)