fix: 初始化 meta.json 文件格式调整,json 缩进因子改为 2,和前端保持一致

This commit is contained in:
shizhendong
2024-11-05 14:45:51 +08:00
parent f2cc7f8cdb
commit 62925cd6b7

View File

@@ -667,7 +667,7 @@ public class GitServiceImpl implements IGitService {
jsonObject.set("id", T.StrUtil.uuid());
jsonObject.set("name", applicationName);
jsonObject.set("longName", applicationName);
fileContent = T.JSONUtil.toJsonPrettyStr(jsonObject);
fileContent = T.JSONUtil.parse(jsonObject).toJSONString(2);
}
if ("signature.json".equals(str)) {
fileContent = this.signatureJsonTemplate;