Skip to content

Commit 4232fd3

Browse files
committed
修复文件写出问题
1 parent 14ed2a9 commit 4232fd3

File tree

1 file changed

+2
-1
lines changed
  • hsweb-system/hsweb-system-dev-tools/src/main/java/org/hswebframework/web/dev/tools/writer

1 file changed

+2
-1
lines changed

hsweb-system/hsweb-system-dev-tools/src/main/java/org/hswebframework/web/dev/tools/writer/DefaultCodeWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ private void writeCode(String path, GeneratedCode code) {
2121
File file = new File(path);
2222
file.mkdir();
2323
String type = code.getType();
24-
String filePath = code.getFile().startsWith("/") ? code.getFile() : path + "/" + code.getFile();
24+
25+
String filePath = code.getFile();
2526
if ("dir".equals(type)) {
2627
code.getChildren()
2728
.forEach(childrenCode -> writeCode(filePath, childrenCode));

0 commit comments

Comments
 (0)