TreeGrid: setting data root has no effect

后端 未结 4 738
小蘑菇
小蘑菇 2021-01-20 07:12

I\'m trying to setup a TreeGrid, my data object looks like this:

{
    \"code\": \"success\",
    \"data\": {
        \"text\": \".\",
        \"children\":          


        
4条回答
  •  盖世英雄少女心
    2021-01-20 07:41

    Since you have setup your reader with root: 'data' you have to replace 'children' with 'data' in your json:

    {
        "code": "success",
        "data": {
            "text": ".",
            "data": [ // << not "children"
                {
    

提交回复
热议问题