perf: 标签页可按滑动力度进行左右滑动 (#884)

* perf: 标签页可按滑动力度进行左右滑动

* fix: login keypress
This commit is contained in:
xiaoming
2024-01-23 13:24:44 +08:00
committed by GitHub
parent c1eaeeb309
commit cc28f0a6de
6 changed files with 48 additions and 9 deletions

View File

@@ -97,7 +97,8 @@ const immediateDebounce: any = debounce(
);
useEventListener(document, "keypress", ({ code }) => {
if (code === "Enter" && !disabled.value) immediateDebounce(ruleFormRef.value);
if (code === "Enter" && !disabled.value && !loading.value)
immediateDebounce(ruleFormRef.value);
});
watch(imgCode, value => {