diff --git a/src/views/Login.vue b/src/views/Login.vue index 1e6759dc115c1e3a8cac991a5ff11c196faeb8ea..7b2e6b3d32ba36e6d9bf8c6b017f55de5c9822b8 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -11,7 +11,9 @@ <v-text-field v-model="PW" label="Password" :type="passwordShow ? 'text' : 'password'" - required/> + required + v-on:keyup.enter="login" + /> </v-flex> <v-flex xs12 text-xs-right> <v-btn class="mx-0 font-weight-light" color="success" @click="login">Login</v-btn> diff --git a/src/views/MyPage.vue b/src/views/MyPage.vue index 20f41b16198493b81741ad4836eccd974827e16d..46772201ab3ed33bca8cbc0a250b0783a98ea110 100644 --- a/src/views/MyPage.vue +++ b/src/views/MyPage.vue @@ -37,7 +37,7 @@ </v-card-text> <v-flex xs12 md6> - <v-text-field v-model="PW" label="현재 PW" :type="passwordShow ? 'text' : 'password'" required/> + <v-text-field v-on:keyup.enter="edit" v-model="PW" label="현재 PW" :type="passwordShow ? 'text' : 'password'" required/> </v-flex> <v-card-actions> @@ -65,7 +65,7 @@ </v-card-text> <v-flex xs12 md4> - <v-text-field v-model="PW" label="현재 PW" :type="passwordShow ? 'text' : 'password'" text-align= "required"/> + <v-text-field v-on:keyup.enter="edit" v-model="PW" label="현재 PW" :type="passwordShow ? 'text' : 'password'" text-align= "required"/> </v-flex> <v-card-text> @@ -73,7 +73,7 @@ </v-card-text> <v-flex xs12 md4 center> - <v-text-field v-model="newPW" label="변경할 PW" :type="passwordShow ? 'text' : 'password'" required/> + <v-text-field v-on:keyup.enter="edit" v-model="newPW" label="변경할 PW" :type="passwordShow ? 'text' : 'password'" required/> </v-flex> <v-card-actions> @@ -204,7 +204,6 @@ export default { else{ this.user_id=this.$store.state.userInfo._id; this.id=this.$store.state.userInfo.ID; - // this.PW = this.$store.state.userInfo.PW; this.name=this.$store.state.userInfo.name; this.phone=this.$store.state.userInfo.phone; this.email = this.$store.state.userInfo.email;