Ver Fonte

!1743 update Web/src/views/login/component/account.vue.
Merge pull request !1743 from 小米粥/N/A

zuohuaijun há 11 meses atrás
pai
commit
675137eecf
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      Web/src/views/login/component/account.vue

+ 2 - 1
Web/src/views/login/component/account.vue

@@ -197,7 +197,8 @@ onUnmounted(() => {
 
 
 // 检测大小写按键
 // 检测大小写按键
 const handleKeyPress = (e: KeyboardEvent) => {
 const handleKeyPress = (e: KeyboardEvent) => {
-	state.capsLockVisible = e.getModifierState('CapsLock');
+    if (e.getModifierState != undefined)
+	    state.capsLockVisible = e.getModifierState('CapsLock');
 };
 };
 
 
 // 获取验证码
 // 获取验证码