format batch file

This commit is contained in:
codetypes committed 2024-07-16 16:54:36 +08:00
1 parent d364d92489
commit 9264d0d28a
1 file changed
+1 -1
+1 -1
View File
@@ -328,7 +328,7 @@ export const useWorkspace = create<WorkspaceStore>((set, get) => ({
processNode(tree.root); processNode(tree.root);
} }
if (tree) { if (tree) {
fs.writeFileSync(file.path, JSON.stringify(tree)); fs.writeFileSync(file.path, JSON.stringify(tree, null, 2));
} }
}); });
} catch (error) { } catch (error) {