From a2cf96978f97b289d603aa404bcfaf8a0d64f87b Mon Sep 17 00:00:00 2001 From: break-wave <654896146@qq.com> Date: Sat, 5 Dec 2020 15:51:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20setCellValue=20=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=B6=E7=9A=84=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/global/api.js b/src/global/api.js index 625cb59..a90a961 100644 --- a/src/global/api.js +++ b/src/global/api.js @@ -114,6 +114,9 @@ export function setCellValue(row, column, value, options = {}) { } let data = file.data; + if(isRefresh) { + data = $.extend(true, [], file.data); + } if(data.length == 0){ data = sheetmanage.buildGridData(file); }