Explorar o código

:bug: term删除过多

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
4b15c2c2e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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++) {
 					const element = arrMyTerm[index];
 					if(element.guid==result.data.guid){
-						arrMyTerm.splice(index);
+						arrMyTerm.splice(index,1);
 						break;
 					}
 				}