perf: optimize checkCapslock method (#2635)
perf: optimize checkCapslock method (#2635)

* optimize checkCapslock method

* update

Co-authored-by: 花裤衩 <7949b6edbed587180f5260ad080c83dbb4b8af86@gmail.com>

PanJiaChen/vue-element-admin,PanJiaChen/vue-element-admin