* [refac bug #59117] Check team left length.

This commit is contained in:
wangyidong
2025-01-09 16:34:15 +08:00
committed by 孙广明
parent dd94610fba
commit 736f8a2917
+1 -1
View File
@@ -169,7 +169,7 @@ window.saveTeam = function()
let $left = $tr.find('[name^=teamLeft]');
let left = parseFloat($left.val());
if(!isNaN(left)) totalLeft += left;
if(!$left.prop('readonly') && (isNaN(left) || left <= 0) && team.length > 0)
if($left.length > 0 && !$left.prop('readonly') && (isNaN(left) || left <= 0) && team.length > 0)
{
zui.Modal.alert(realname + ' ' + leftNotEmpty);
error = true;