From 04134dd95ac62c223edeb670a74779d2330838d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= <panfree23@gmail.com> Date: Wed, 8 Jan 2020 12:11:02 +0800 Subject: [PATCH] update --- src/views/login/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3868a849..25906405 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -138,8 +138,9 @@ export default { // window.removeEventListener('storage', this.afterQRScan) }, methods: { - checkCapslock({ shiftKey, key } = {}) { - this.capsTooltip = key && key.length === 1 && ((shiftKey && (key >= 'A' && key <= 'Z')) || (!shiftKey && (key >= 'A' && key <= 'Z'))) + checkCapslock(e) { + const { key } = e + this.capsTooltip = key && key.length === 1 && (key >= 'A' && key <= 'Z') }, showPwd() { if (this.passwordType === 'password') {