perf: 网络不好连续按回车导致重复添加子任务
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user