From 17fa27f69486d90890b115a18db1837d8496f7c1 Mon Sep 17 00:00:00 2001 From: richie Date: Mon, 20 May 2019 18:48:12 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-594=20=E7=89=88=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E9=9C=80=E8=A6=81reload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/upm/UpmBridge.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java b/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java index 92b8ea62f3..8877631a12 100644 --- a/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java +++ b/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);