重构代码:优化单行删除操作日志脚本 link #IS7UN

This commit is contained in:
Argo Zhang 2019-03-20 14:52:06 +08:00
parent 809efa3029
commit 9e50cae073
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,9 @@
confirmButtonClass: "btn-danger ml-2",
cancelButtonText: "取消"
}, function () {
$.logData.push({ url: op.url, data: $.extend({}, row, { _nodes: null }) });
var data = $.extend({}, row);
delete data._nodes;
$.logData.push({ url: op.url, data: data });
setTimeout(function () {
var iDs = [value];
$.bc({