Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(store cache): bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tubiaoge committed Aug 28, 2020
1 parent 552e37d commit cbd9014
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 8 additions & 6 deletions src/controllers/sheetmanage.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ const sheetmanage = {

let execF = function(){
_this.mergeCalculation(file["index"]);
editor.webWorkerFlowDataCache(Store.flowdata);//worker存数据
_this.storeSheetParam();
_this.restoreselect();
_this.CacheNotLoadControll = [];
Expand Down Expand Up @@ -981,10 +982,11 @@ const sheetmanage = {
}

let load = file["load"];
if (load != null) {
if (load != null) {
_this.mergeCalculation(index);
_this.setSheetParam(true);
_this.showSheet();
_this.mergeCalculation(index);

setTimeout(function () {
formula.execFunctionGroup();
luckysheetrefreshgrid();
Expand All @@ -998,10 +1000,10 @@ const sheetmanage = {

file["data"] = data;
file["load"] = "1";

_this.mergeCalculation(index);
_this.setSheetParam();
_this.showSheet();
_this.mergeCalculation(index);

setTimeout(function () {
_this.restoreCache();
formula.execFunctionGroupForce(luckysheetConfigsetting.forceCalculation);
Expand Down Expand Up @@ -1041,10 +1043,10 @@ const sheetmanage = {

file["data"] = data;
file["load"] = "1";

_this.mergeCalculation(index);
_this.setSheetParam();
_this.showSheet();
_this.mergeCalculation(index);

setTimeout(function () {
_this.restoreCache();
formula.execFunctionGroupForce(luckysheetConfigsetting.forceCalculation);
Expand Down
2 changes: 0 additions & 2 deletions src/global/createdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ export default function luckysheetcreatedom(colwidth, rowheight, data, menu, tit
else {
Store.flowdata = data;
}

editor.webWorkerFlowDataCache(Store.flowdata);//worker存数据

let flowHTML = flow;
if(Store.config == null){
Expand Down
2 changes: 1 addition & 1 deletion src/index.html

Large diffs are not rendered by default.

0 comments on commit cbd9014

Please sign in to comment.