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

+ 1 - 1
public/app.js

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