Merge pull request #13123 from dataease/pr@dev-v2@refactor_dir

refactor(仪表板、数据大屏): 静态资源兼容Windows目录
This commit is contained in:
王嘉豪 2024-11-05 14:06:14 +08:00 committed by GitHub
commit d144dada26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.