Browse Source

Merge pull request #824 from cdswyda/fix/excel-paste-undo

fix: 修复初始config为空的清空下,粘贴后撤销,边距等信息未正确撤销的问题
master
Dushusir 4 years ago
committed by GitHub
parent
commit
18c8dff5bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/global/refresh.js

4
src/global/refresh.js

@ -120,8 +120,8 @@ function jfrefreshgrid(data, range, allParam, isRunExecFunction = true, isRefres
editor.webWorkerFlowDataCache(Store.flowdata);//worker存数据
file.data = Store.flowdata;
//config, null or empty object are not processed
if(cfg != null && Object.keys(cfg).length !== 0){
// 必须要处理,可能之前的config为空,则也需要清空
if(cfg != null){
Store.config = cfg;
file.config = Store.config;

Loading…
Cancel
Save