Skip to content

Commit

Permalink
解决数据查询中列表类型无法正常展示的问题 fix hhyo#1645 hhyo#1792
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Sep 17, 2022
1 parent b5bab4e commit 266834f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/templates/sqlquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,11 @@ <h4 class="modal-title text-danger">收藏语句</h4>
}
},
formatter: function (value, row, index, field) {
if (typeof (value) == "object" && Object.prototype.toString.call(value).toLowerCase() == "[object object]" && !value.length) {
if (value instanceof Array || value instanceof Object){
return JSON.stringify(value);
}
return value
}

});
});
if (result['full_sql'].match(/^show\s+create\s+table/)) {
Expand Down

0 comments on commit 266834f

Please sign in to comment.