Browse Source

Merge pull request #1289 in BA/design from ~MANGO/m_design:release/9.0 to release/9.0

* commit '77cdcecaf93dc09cabb687785ded47394d72b459':
  修改9.0新老图表bug
master
superman 7 years ago
parent
commit
29d5a86efb
  1. 5
      designer_chart/src/com/fr/plugin/chart/map/server/ChartMapEditorAction.java

5
designer_chart/src/com/fr/plugin/chart/map/server/ChartMapEditorAction.java

@ -1,6 +1,8 @@
package com.fr.plugin.chart.map.server;
import com.fr.base.ConfigManager;
import com.fr.base.Env;
import com.fr.base.FRContext;
import com.fr.design.DesignerEnvManager;
import com.fr.design.actions.UpdateAction;
import com.fr.general.GeneralContext;
@ -24,7 +26,8 @@ public class ChartMapEditorAction extends UpdateAction {
int port = DesignerEnvManager.getEnvManager().getJettyServerPort();
String web = GeneralContext.getCurrentAppNameOfEnv();
String serverlet = ConfigManager.getProviderInstance().getServletMapping();
StartServer.browserURLWithLocalEnv(String.format("http://localhost:%d/%s/%s?op=map", port, web, serverlet));
Env env = FRContext.getCurrentEnv();
StartServer.browserURLWithLocalEnv(env.isLocalEnv() ? String.format("http://localhost:%d/%s/%s?op=map", port, web, serverlet) : env.getPath() + "?op=map");
}
}

Loading…
Cancel
Save