From 6b6f802115aada29c45565dd070ff466463e02cf Mon Sep 17 00:00:00 2001 From: plough Date: Fri, 13 Oct 2017 10:51:28 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-3520=20=E8=BF=9C=E7=A8=8B=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=BB=A5=E5=90=8E=E6=89=93?= =?UTF-8?q?=E5=BC=80=E4=BA=A7=E5=93=81=E6=BC=94=E7=A4=BA=EF=BC=8C=E8=B5=B0?= =?UTF-8?q?=E7=9A=84=E8=BF=98=E6=98=AFlocalhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_base/src/com/fr/start/StartServer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/designer_base/src/com/fr/start/StartServer.java b/designer_base/src/com/fr/start/StartServer.java index ee06ede80..17e3c58d7 100644 --- a/designer_base/src/com/fr/start/StartServer.java +++ b/designer_base/src/com/fr/start/StartServer.java @@ -10,6 +10,7 @@ import com.fr.design.dialog.DialogActionAdapter; import com.fr.design.file.TemplateTreePane; import com.fr.design.gui.itextarea.UITextArea; import com.fr.design.mainframe.DesignerContext; +import com.fr.env.RemoteEnv; import com.fr.env.SignIn; import com.fr.general.ComparatorUtils; import com.fr.general.GeneralContext; @@ -47,6 +48,10 @@ public class StartServer { * 找默认工作目录,不应该按照名字去找,而应该按照安装路径,因为默认工作目录的名字可能会改变。 */ public static void browserDemoURL() { + if (FRContext.getCurrentEnv() instanceof RemoteEnv) { + browser(FRContext.getCurrentEnv().getPath() + "?op=fs"); + return; + } if (ComparatorUtils.equals(StableUtils.getInstallHome(), ".")) {//august:供代码使用 String web = GeneralContext.getCurrentAppNameOfEnv(); browserURLWithLocalEnv("http://localhost:" + DesignerEnvManager.getEnvManager().getJettyServerPort() + "/" + web + "/" + ConfigManager.getProviderInstance().getServletMapping()