ting.yin hace 5 años
padre
commit
bc7ff46e5d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);