Nikolay Suslov 4 年之前
父节点
当前提交
9aac57a42d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app.js

+ 1 - 1
public/app.js

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