fix: 修复文件路径生成逻辑中的参数

This commit is contained in:
AN 2025-05-11 11:51:22 +08:00
parent 2940a3fcce
commit 498b4d866d

View File

@ -193,9 +193,9 @@ public class VelocityUtils {
} else if (template.contains("api.ts.vm")) { } else if (template.contains("api.ts.vm")) {
fileName = StringUtils.format("{}/api/{}/{}.ts", soybeanPath, moduleName, StrUtil.toSymbolCase(businessName, '-')); fileName = StringUtils.format("{}/api/{}/{}.ts", soybeanPath, moduleName, StrUtil.toSymbolCase(businessName, '-'));
} else if (template.contains("search.vue.vm")) { } else if (template.contains("search.vue.vm")) {
fileName = StringUtils.format("{}/views/{}/{}/modules/{}-search.vue", soybeanPath, moduleName, businessName, StrUtil.toSymbolCase(businessName, '-')); fileName = StringUtils.format("{}/views/{}/{}/modules/{}-search.vue", soybeanPath, moduleName, StrUtil.toSymbolCase(businessName, '-'), StrUtil.toSymbolCase(businessName, '-'));
} else if (template.contains("operate-drawer.vue.vm")) { } else if (template.contains("operate-drawer.vue.vm")) {
fileName = StringUtils.format("{}/views/{}/{}/modules/{}-operate-drawer.vue", soybeanPath, moduleName, businessName, StrUtil.toSymbolCase(businessName, '-')); fileName = StringUtils.format("{}/views/{}/{}/modules/{}-operate-drawer.vue", soybeanPath, moduleName, StrUtil.toSymbolCase(businessName, '-'), StrUtil.toSymbolCase(businessName, '-'));
} }
return fileName; return fileName;
} }