Browse Source

KERNEL-594 版本信息,需要reload

bugfix/10.0
richie 6 years ago
parent
commit
17fa27f694
  1. 7
      designer-base/src/main/java/com/fr/design/upm/UpmBridge.java

7
designer-base/src/main/java/com/fr/design/upm/UpmBridge.java

@ -57,8 +57,10 @@ public class UpmBridge {
}
private JSObject window;
private Browser browser;
private UpmBridge(Browser browser) {
this.browser = browser;
this.window = browser.executeJavaScriptAndReturnValue("window").asObject();
}
@ -112,6 +114,11 @@ public class UpmBridge {
return ServerPreferenceConfig.getInstance().getOptimizedUPMVersion();
}
@JSBridge
public void reload() {
browser.reloadIgnoringCache();
}
@JSBridge
public String i18nText(String key) {
return Toolkit.i18nText(key);

Loading…
Cancel
Save