Skip to content

Commit 04134dd

Browse files
committed
update
1 parent 0294a72 commit 04134dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/views/login/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ export default {
138138
// window.removeEventListener('storage', this.afterQRScan)
139139
},
140140
methods: {
141-
checkCapslock({ shiftKey, key } = {}) {
142-
this.capsTooltip = key && key.length === 1 && ((shiftKey && (key >= 'A' && key <= 'Z')) || (!shiftKey && (key >= 'A' && key <= 'Z')))
141+
checkCapslock(e) {
142+
const { key } = e
143+
this.capsTooltip = key && key.length === 1 && (key >= 'A' && key <= 'Z')
143144
},
144145
showPwd() {
145146
if (this.passwordType === 'password') {

0 commit comments

Comments
 (0)