Browse Source

REPORT-137327 - 远程设计下切换目录卡顿优化

fbp/merge
Destiny.Lin 2 months ago
parent
commit
addee654a5
  1. 4
      designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java

4
designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java vendored

@ -10,6 +10,7 @@ import com.fr.design.mainframe.App;
import com.fr.design.mainframe.AppGroup; import com.fr.design.mainframe.AppGroup;
import com.fr.design.mainframe.JTemplateFactory; import com.fr.design.mainframe.JTemplateFactory;
import com.fr.nx.app.designer.CptxApp; import com.fr.nx.app.designer.CptxApp;
import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -36,6 +37,7 @@ public class DesignAppComponent {
JTemplateFactory.register(app); JTemplateFactory.register(app);
} }
PluginRemote.getInstance().start(); PluginRemote.getInstance().start();
RemoteAuthorityRepository.getInstance().start();
} }
/** /**
@ -43,7 +45,7 @@ public class DesignAppComponent {
*/ */
@Stop @Stop
public void stop() { public void stop() {
RemoteAuthorityRepository.getInstance().stop();
List<App> appList = new ArrayList<>(Carina.getApplicationContext().group(AppGroup.class).getAll()); List<App> appList = new ArrayList<>(Carina.getApplicationContext().group(AppGroup.class).getAll());
for (App app : appList) { for (App app : appList) {
JTemplateFactory.remove(app); JTemplateFactory.remove(app);

Loading…
Cancel
Save