Browse Source

Pull request #2715: CHART-16112 富文本编辑器browser在初次打开时清理缓存

Merge in DESIGN/design from ~QINGHUI.LIU/design:final/10.0 to final/10.0

* commit '2b4d988bf98ffbcad6eb048c384630a5edc0445f':
  CHART-16112 富文本标记器browser在初次打开时清理缓存
final/10.0
Kara 4 years ago
parent
commit
a1570464b8
  1. 1
      designer-chart/src/main/java/com/fr/van/chart/designer/component/VanChartRichEditorPane.java

1
designer-chart/src/main/java/com/fr/van/chart/designer/component/VanChartRichEditorPane.java

@ -38,6 +38,7 @@ public class VanChartRichEditorPane {
.prepare(new ScriptContextAdapter() { .prepare(new ScriptContextAdapter() {
public void onScriptContextCreated(ScriptContextEvent event) { public void onScriptContextCreated(ScriptContextEvent event) {
browser = event.getBrowser(); browser = event.getBrowser();
browser.getCacheStorage().clearCache();
JSValue ns = browser.executeJavaScriptAndReturnValue("window." + namespace); JSValue ns = browser.executeJavaScriptAndReturnValue("window." + namespace);
ns.asObject().setProperty(variable, model); ns.asObject().setProperty(variable, model);

Loading…
Cancel
Save