登录修改
Showing
1 changed file
with
9 additions
and
0 deletions
| ... | @@ -125,6 +125,15 @@ export default { | ... | @@ -125,6 +125,15 @@ export default { |
| 125 | this.initPage(); | 125 | this.initPage(); |
| 126 | this.userInfo.redirectUrl = localStorage.getItem("dj-location"); | 126 | this.userInfo.redirectUrl = localStorage.getItem("dj-location"); |
| 127 | this.reloadCaptcha() | 127 | this.reloadCaptcha() |
| 128 | let self = this; | ||
| 129 | document.onkeydown = function (e) { | ||
| 130 | //按下回车提交 | ||
| 131 | let key = window.event.keyCode; | ||
| 132 | //事件中keycode=13为回车事件 | ||
| 133 | if (key == 13) { | ||
| 134 | self.goHome(); | ||
| 135 | } | ||
| 136 | }; | ||
| 128 | }, | 137 | }, |
| 129 | methods: { | 138 | methods: { |
| 130 | // 更新验证码 | 139 | // 更新验证码 | ... | ... |
-
Please register or sign in to post a comment