Commit d8763b53a8a4014ed87538c01d77e460f3ef7287

Authored by ww
1 parent 9d688503

fix: 修复Xml2JS类在windows环境下打包获取路径链接符号为反斜杠

No preview for this file type
@@ -58,7 +58,7 @@ public class Xml2Js @@ -58,7 +58,7 @@ public class Xml2Js
58 String name = f.getCanonicalPath() 58 String name = f.getCanonicalPath()
59 .substring(basePath.length() + 1); 59 .substring(basePath.length() + 1);
60 result.add( 60 result.add(
61 - "f['" + name + "'] = '" + processFile(f) + "';\n"); 61 + "f['" + name.replace("\\", "/") + "'] = '" + processFile(f) + "';\n");
62 } 62 }
63 } 63 }
64 } 64 }