登录修改
Showing
1 changed file
with
9 additions
and
0 deletions
| ... | @@ -111,6 +111,15 @@ export default { | ... | @@ -111,6 +111,15 @@ export default { |
| 111 | this.initPage(); | 111 | this.initPage(); |
| 112 | this.userInfo.redirectUrl = localStorage.getItem("sjsb-location"); | 112 | this.userInfo.redirectUrl = localStorage.getItem("sjsb-location"); |
| 113 | this.reloadCaptcha() | 113 | this.reloadCaptcha() |
| 114 | let self = this; | ||
| 115 | document.onkeydown = function (e) { | ||
| 116 | //按下回车提交 | ||
| 117 | let key = window.event.keyCode; | ||
| 118 | //事件中keycode=13为回车事件 | ||
| 119 | if (key == 13) { | ||
| 120 | self.goHome(); | ||
| 121 | } | ||
| 122 | }; | ||
| 114 | }, | 123 | }, |
| 115 | methods: { | 124 | methods: { |
| 116 | // 更新验证码 | 125 | // 更新验证码 | ... | ... |
-
Please register or sign in to post a comment