mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
refactor: keypress已弃用,不推荐再使用,建议改为keydown
This commit is contained in:
parent
6d26300181
commit
461caffb27
@ -96,7 +96,8 @@ const immediateDebounce: any = debounce(
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
useEventListener(document, "keypress", ({ code }) => {
|
useEventListener(document, "keydown", ({ code }) => {
|
||||||
|
console.log(code);
|
||||||
if (
|
if (
|
||||||
["Enter", "NumpadEnter"].includes(code) &&
|
["Enter", "NumpadEnter"].includes(code) &&
|
||||||
!disabled.value &&
|
!disabled.value &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user