Browse Source
Merge pull request #833 from nekobc1998923/fix-insertSheet-lose-data
fix: 修复添加sheet后的数据丢失问题.
master
Dushusir
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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 = [];
|
|
|
|