Browse Source

REPORT-141134 fix: 设计器启动服务器默认进入管理系统页面

fbp/master^2
Anner 3 days ago
parent
commit
94ec7b21ba
  1. 9
      designer-base/src/main/java/com/fr/design/utils/DesignUtils.java
  2. 3
      designer-base/src/main/java/com/fr/start/ServerStarter.java

9
designer-base/src/main/java/com/fr/design/utils/DesignUtils.java

@ -1,8 +1,8 @@
package com.fr.design.utils;
import com.fanruan.workplace.http.HttpConstants;
import com.fine.theme.light.ui.laf.FineLightLaf;
import com.formdev.flatlaf.extras.FlatUIDefaultsInspector;
import com.fanruan.workplace.http.HttpConstants;
import com.fr.base.FeedBackInfo;
import com.fr.base.ServerConfig;
import com.fr.base.Utils;
@ -37,9 +37,8 @@ import com.fr.value.NotNullLazyValue;
import com.fr.workspace.WorkContext;
import org.jetbrains.annotations.NotNull;
import javax.swing.SwingUtilities;
import java.awt.Desktop;
import java.awt.Font;
import javax.swing.*;
import java.awt.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
@ -380,7 +379,7 @@ public class DesignUtils {
* 访问服务器环境-空参数
*/
public static void visitEnvServer() {
visitEnvServerByParameters(StringUtils.EMPTY, new String[]{}, new String[]{});
visitEnvServerByParameters(ServerStarter.DEFAULT_SERVER_BASE_ROUTE, new String[]{}, new String[]{});
}
/**

3
designer-base/src/main/java/com/fr/start/ServerStarter.java

@ -15,6 +15,9 @@ import java.util.concurrent.Executors;
public class ServerStarter {
// FBP 下默认进入管理系统
public static final String DEFAULT_SERVER_BASE_ROUTE = "#/management";
/**
* 预览Demo
* 找默认工作目录不应该按照名字去找而应该按照安装路径因为默认工作目录的名字可能会改变

Loading…
Cancel
Save