案例 const list = [ { id: '1', pid: '', GroupCode: '01', Name: '节点01', ParentID: '', }, { id: '2', pid: '1', GroupCode: '0101', Name: '节点0101', ParentID: '01', }, { id: '3', pid: '1'