option中设置defaultExpandedKeys: []和nodeKey: 'id',参考element的default-expanded-keys
option中的props中指定valueprops: { labelText: '标题', label: 'name', value: 'id', children: 'children' }- 树重新加载后指定展开的节点
this.$nextTick(() => { this.treeOption.defaultExpandedKeys = data.parentIdPath })