Nikolay Suslov 5 年之前
父節點
當前提交
cb747cb151
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      public/app.js

+ 1 - 0
public/app.js

@@ -738,6 +738,7 @@ class App {
 
               //var source = (typeof(sourceToEdit) =="object") ? JSON.stringify(sourceToEdit): sourceToEdit;
               if (file.includes('_json')) {
+                source = (typeof JSON.parse(source) == 'object') ? JSON.stringify(source, null, '\t'): source
                 //source = source;//JSON.stringify(source, null, '\t');
               }