Browse Source

REPORT-78881【迭代】【起始页】先选择一个会失败的工作目录,再选择本地目录启动,预览模板失败

添加验证方案,确认有效值
feature/x
Harrison 2 years ago
parent
commit
4e71b4a560
  1. 7
      designer-base/src/main/java/com/fr/start/common/DesignerStartupContext.java

7
designer-base/src/main/java/com/fr/start/common/DesignerStartupContext.java

@ -141,7 +141,12 @@ public class DesignerStartupContext {
String curEnvName = DesignerEnvManager.getEnvManager().getCurEnvName(); String curEnvName = DesignerEnvManager.getEnvManager().getCurEnvName();
DesignerWorkspaceInfo workspaceInfo = DesignerEnvManager.getEnvManager().getWorkspaceInfo(curEnvName); DesignerWorkspaceInfo workspaceInfo = DesignerEnvManager.getEnvManager().getWorkspaceInfo(curEnvName);
return workspaceInfo.getType() == DesignerWorkspaceType.Local; boolean valid = false;
try {
valid = workspaceInfo.checkValid();
} catch (Exception ignore) {
}
return workspaceInfo.getType() == DesignerWorkspaceType.Local && valid;
} }
public void setStartupPageModel(StartupPageModel startupPageModel) { public void setStartupPageModel(StartupPageModel startupPageModel) {

Loading…
Cancel
Save