Skip to content

Commit

Permalink
Merge pull request #77
Browse files Browse the repository at this point in the history
feat: enter key submit
  • Loading branch information
lihuacai168 committed Apr 23, 2023
2 parents 8011da2 + 2febcce commit 4124965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
}
},
// Various Dev Server settings
host: '0.0.0.0', // can be overwritten by process.variables.HOST
host: 'localhost', // can be overwritten by process.variables.HOST
port: 8080, // can be overwritten by process.variables.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<el-col :span="24">
<div>
<div id="form-title">{{ this.$store.state.FasterRunner }}自动化测试平台</div>
<form id="submit-form">
<form id="submit-form" @keydown.enter.prevent="submitForm">
<div id="form-content">
<div id="form-msg">登录账号</div>
<div id="form-inputs">
Expand All @@ -43,7 +43,7 @@
@mouseover="passwordInvalid= ''"></div>
</div>
<div class="form-submit">
<button type="button" class="btn btn-primary" id="submitBtn"
<button type="submit" class="btn btn-primary" id="submitBtn"
@click="submitForm">立即登录
</button>
</div>
Expand Down

0 comments on commit 4124965

Please sign in to comment.