From e1e4ce34ea59f2d74374458ba94ac57ff121aba9 Mon Sep 17 00:00:00 2001 From: cdswyda Date: Thu, 4 Nov 2021 17:10:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9D=E5=A7=8Bconf?= =?UTF-8?q?ig=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=B8=85=E7=A9=BA=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E7=B2=98=E8=B4=B4=E5=90=8E=E6=92=A4=E9=94=80=EF=BC=8C?= =?UTF-8?q?=E8=BE=B9=E8=B7=9D=E7=AD=89=E4=BF=A1=E6=81=AF=E6=9C=AA=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E6=92=A4=E9=94=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/refresh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global/refresh.js b/src/global/refresh.js index 76acd47..b03ff1a 100644 --- a/src/global/refresh.js +++ b/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;