mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 网络不好连续按回车导致重复添加子任务
This commit is contained in:
parent
fec116f131
commit
af12aecd36
@ -956,12 +956,11 @@ export default {
|
||||
|
||||
addsubKeydown(e) {
|
||||
if (e.keyCode === 13) {
|
||||
if (e.shiftKey) {
|
||||
if (e.shiftKey || this.addsubLoad > 0) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
this.onAddsub();
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user