修复大括号位置

This commit is contained in:
ShakeFlower 2024-11-17 08:47:16 +08:00
parent 73e7fea888
commit 43aeb84d39

View File

@ -33,7 +33,7 @@ namespace H5MotaUpdate.ViewModels
Convert(jsonObject);
}
StringBuilder newJsContent = new StringBuilder();
newJsContent.Append("var " + DATANAME + " = ");
newJsContent.Append("var " + DATANAME + " = \n"); // 大括号在第二行
newJsContent.Append(jsonObject.ToString());
File.WriteAllText(destPath, newJsContent.ToString());
}