修改删除逻辑

This commit is contained in:
liaozetao
2024-03-29 15:52:18 +08:00
parent 692294dcb8
commit 65e5a5b15a

View File

@@ -572,6 +572,7 @@ export default {
if (!val) { if (!val) {
return; return;
} }
$('#returnProfits').chlidren().remove();
let returnProfits = val.returnProfits; let returnProfits = val.returnProfits;
if (!returnProfits || returnProfits.length <= 0) { if (!returnProfits || returnProfits.length <= 0) {
return; return;
@@ -647,6 +648,8 @@ export default {
}); });
$('#returnProfit' + index).remove(); $('#returnProfit' + index).remove();
} }
} else {
$('#returnProfit' + index).remove();
} }
}); });