Commit d8763b53a8a4014ed87538c01d77e460f3ef7287
1 parent
9d688503
fix: 修复Xml2JS类在windows环境下打包获取路径链接符号为反斜杠
Showing
2 changed files
with
1 additions
and
1 deletions
No preview for this file type
... | ... | @@ -58,7 +58,7 @@ public class Xml2Js |
58 | 58 | String name = f.getCanonicalPath() |
59 | 59 | .substring(basePath.length() + 1); |
60 | 60 | result.add( |
61 | - "f['" + name + "'] = '" + processFile(f) + "';\n"); | |
61 | + "f['" + name.replace("\\", "/") + "'] = '" + processFile(f) + "';\n"); | |
62 | 62 | } |
63 | 63 | } |
64 | 64 | } | ... | ... |