ソースを参照

:bug: term删除过多

visuddhinanda 4 年 前
コミット
4b15c2c2e4
1 ファイル変更1 行追加1 行削除
  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;
 					}
 					}
 				}
 				}