From 68e334db78ce04e351a32e64338dfe2776ff7894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 15 Feb 2023 20:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E7=9A=84=20`updat?= =?UTF-8?q?e`=20=E6=96=B9=E6=B3=95=EF=BC=8C=E4=BB=A5=E8=A7=A3=E9=99=A4?= =?UTF-8?q?=E5=AF=B9=E9=9D=9E=E5=8E=9F=E5=A7=8B=E5=AD=97=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index c3fad073..028b749d 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2034,7 +2034,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ var cell = td.children(ELEM_CELL); //获取当前修改的列 // 更新缓存中的数据 - if(key in data) data[key] = obj.data[key] = value; + data[key] = obj.data[key] = value; // 更新相应列视图 that.eachCols(function(i, item3){