ting.yin 5 年之前
父節點
當前提交
bc7ff46e5d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stmms-web/src/main/webapp/static/mark-json/js/json-loader.js

+ 1 - 1
stmms-web/src/main/webapp/static/mark-json/js/json-loader.js

@@ -19,7 +19,7 @@ JsonLoader.prototype.build = function (task, callback) {
 //         callback();
         var url = this.jsonServer + task.jsonUrl;
         $.get(url, function (result) {
-            task.jsonData = result;
+            task.jsonData = JSON.parse(result);
             callback();
         }).error(function () {
             console.log('json load error:' + url);