From 7956748e652f136a5fedfc9ef1435148434e6c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=9C=E7=8C=AB=E5=AD=90neko?= <815743831@qq.com> Date: Wed, 10 Nov 2021 16:14:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0shee?= =?UTF-8?q?t=E5=90=8E=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/sheetmanage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/sheetmanage.js b/src/controllers/sheetmanage.js index 6e7687b..1deca92 100644 --- a/src/controllers/sheetmanage.js +++ b/src/controllers/sheetmanage.js @@ -1241,7 +1241,10 @@ const sheetmanage = { file["data"] = data; file["load"] = "1"; - _this.loadOtherFile(file); + // *这里不应该调用loadOtherFile去加载其余页面的数据, + // *因为loadOtherFile里判断后会调用buildGridData把其余的sheet的数据设置为空的二维数组,即使那个sheet在服务端存在数据. + // *这就导致一个数据丢失问题. + // _this.loadOtherFile(file); // let sheetindexset = _this.checkLoadSheetIndex(file); // let sheetindex = [];