Browse Source

Pull request #7943: REPORT-66254 【组件商城风格优化】打开商城窗口到商城内容显示出来,期间大概有5秒空白状态,需要优化下

Merge in DESIGN/design from ~STARRYI/design:release/11.0 to release/11.0

* commit '351275e6fc587629b3544f4dc389aaeb519e35ef':
  REPORT-66254 【组件商城风格优化】打开商城窗口到商城内容显示出来,期间大概有5秒空白状态,需要优化下
bugfix/11.0
starryi 3 years ago
parent
commit
a8c9fe698d
  1. 3
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/mini/MiniComponentShopDialog.java
  2. 8
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/mini/MiniComponentShopPane.java

3
designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/mini/MiniComponentShopDialog.java

@ -67,8 +67,7 @@ public class MiniComponentShopDialog {
for (WindowListener listener: windowListeners) { for (WindowListener listener: windowListeners) {
listener.windowClosed(e); listener.windowClosed(e);
} }
getInstance().frame = null; shopPane.reload();
shopPane.dispose();
} }
@Override @Override

8
designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/mini/MiniComponentShopPane.java

@ -59,13 +59,13 @@ public class MiniComponentShopPane extends JPanel {
loginListener = new Listener<String>() { loginListener = new Listener<String>() {
@Override @Override
public void on(Event event, String param) { public void on(Event event, String param) {
modernUIPane.redirect(OnlineShopUtils.getWebMiniShopPath()); reload();
} }
}; };
logoutListener = new Listener<String>() { logoutListener = new Listener<String>() {
@Override @Override
public void on(Event event, String param) { public void on(Event event, String param) {
modernUIPane.redirect(OnlineShopUtils.getWebMiniShopPath()); reload();
} }
}; };
@ -78,4 +78,8 @@ public class MiniComponentShopPane extends JPanel {
EventDispatcher.stopListen(loginListener); EventDispatcher.stopListen(loginListener);
EventDispatcher.stopListen(logoutListener); EventDispatcher.stopListen(logoutListener);
} }
public void reload() {
modernUIPane.redirect(OnlineShopUtils.getWebMiniShopPath());
}
} }

Loading…
Cancel
Save