|
|
@ -131,6 +131,8 @@ |
|
|
|
}); |
|
|
|
validator(null, value?.code) |
|
|
|
.then(() => { |
|
|
|
console.log('登录'); |
|
|
|
|
|
|
|
// 记住密码 |
|
|
|
rememberFunc(data); |
|
|
|
loading.value = true; |
|
|
@ -257,13 +259,13 @@ |
|
|
|
created() { |
|
|
|
const _this = this; |
|
|
|
window.sessionStorage.clear(); |
|
|
|
document.onkeydown = function (e) { |
|
|
|
const key = window.event === undefined ? e.keyCode : window.event.keyCode; |
|
|
|
key === 13 ? _this.submit() : ''; |
|
|
|
}; |
|
|
|
// document.onkeydown = function (e) { |
|
|
|
// const key = window.event === undefined ? e.keyCode : window.event.keyCode; |
|
|
|
// key === 13 ? _this.submit() : ''; |
|
|
|
// }; |
|
|
|
}, |
|
|
|
beforeUnmount() { |
|
|
|
document.onkeydown = function (e) {}; |
|
|
|
// document.onkeydown = function (e) {}; |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|