diff --git a/component/pear/module/treetable.js b/component/pear/module/treetable.js index b5a0724..b6d61cf 100644 --- a/component/pear/module/treetable.js +++ b/component/pear/module/treetable.js @@ -16,7 +16,7 @@ layui.define(['layer', 'table'], function (exports) { } else { $.getJSON(param.url, param.where, function (res) { if(param.parseData){ - res.data = param.parseData(res); + res = param.parseData(res); param.data = res.data; } treetable.init(param, res.data);