Parcourir la source

:bug: term删除过多

visuddhinanda il y a 5 ans
Parent
commit
4b15c2c2e4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/term/term_edit_dlg.js

+ 1 - 1
app/term/term_edit_dlg.js

@@ -151,7 +151,7 @@ function term_edit_dlg_save() {
 				for (let index = 0; index < arrMyTerm.length; index++) {
 				for (let index = 0; index < arrMyTerm.length; index++) {
 					const element = arrMyTerm[index];
 					const element = arrMyTerm[index];
 					if(element.guid==result.data.guid){
 					if(element.guid==result.data.guid){
-						arrMyTerm.splice(index);
+						arrMyTerm.splice(index,1);
 						break;
 						break;
 					}
 					}
 				}
 				}