Browse Source

fix: 修复添加sheet后的数据丢失问题.

master
菜猫子neko 4 years ago
parent
commit
7956748e65
  1. 5
      src/controllers/sheetmanage.js

5
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 = [];

Loading…
Cancel
Save