Browse Source

Pull request #14637: REPORT-113978 补充数据中心位置

Merge in DESIGN/design from ~VITO/c-design:fbp-1.0 to fbp-1.0

* commit 'c9e6fbc242857280e304ba98366bba1fb5d50b0d':
  REPORT-113978 补充数据中心位置
fbp-1.0
vito-刘恒霖 3 months ago
parent
commit
196e217546
  1. 4
      designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/DatacentersPane.java

4
designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/DatacentersPane.java

@ -1,5 +1,6 @@
package com.fr.design.data.tabledata.datacenter;
import com.fanruan.workplace.http.ServiceType;
import com.fr.datacenters.tabledata.DCTableData;
import com.fr.datacenters.tabledata.bean.DCNameBean;
import com.fr.datacenters.tabledata.bean.DCTableDataBean;
@ -80,7 +81,8 @@ public class DatacentersPane extends AbstractTableDataPane<DCTableData> {
private static String getDatacentersUrl() {
if (!WorkContext.getCurrent().isLocal()) {
String path = WorkContext.getCurrent().getPath();
return path.endsWith("/") ? path + "bi" : path + "/bi";
String datacenterPath = ServiceType.DATACENTER.createPath(StringUtils.EMPTY);
return path.endsWith("/") ? path + datacenterPath : path + "/" + datacenterPath;
}
return StringUtils.EMPTY;
}

Loading…
Cancel
Save