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