refactor(仪表板、数据大屏): 静态资源兼容Windows目录
This commit is contained in:
parent
ce797b2621
commit
7b465a8c06
@ -7,11 +7,11 @@ import static io.dataease.utils.StaticResourceUtils.ensureSuffix;
|
||||
|
||||
public class StaticResourceConstants {
|
||||
|
||||
public static final String FILE_PROTOCOL = "file://";
|
||||
public static final String FILE_PROTOCOL = "file:";
|
||||
|
||||
public static final String FILE_SEPARATOR = File.separator;
|
||||
|
||||
public static final String USER_HOME = "/opt/dataease2.0/data";
|
||||
public static final String USER_HOME = "/opt/dataease2.0/data".replaceAll("/",FILE_SEPARATOR);
|
||||
|
||||
public static String WORK_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "static-resource" + FILE_SEPARATOR;
|
||||
|
||||
@ -21,8 +21,8 @@ public class StaticResourceConstants {
|
||||
public static String REPORT_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "report";
|
||||
public static String PLUGIN_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "plugin";
|
||||
|
||||
public static String MAP_URL = "/map";
|
||||
public static String GEO_URL = "/geo";
|
||||
public static String MAP_URL = FILE_SEPARATOR + "map";
|
||||
public static String GEO_URL = FILE_SEPARATOR +"geo";
|
||||
|
||||
/**
|
||||
* Upload prefix.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user