diff --git a/packages/grid/AppGridBlock/components/list.vue b/packages/grid/AppGridBlock/components/list.vue index e6bc013b..3d5417f0 100644 --- a/packages/grid/AppGridBlock/components/list.vue +++ b/packages/grid/AppGridBlock/components/list.vue @@ -213,7 +213,7 @@ export default { this.treeObj.treeList = res.data.filter(e => !e.parentGirdId) const parentGirdId = this.treeObj.treeList[0].id - this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => { + this.treeObj.treeList.map(p => this.addChild(p, res.data.sort((a, b)=>{ return a.girdCode - b.girdCode}).map(v => { if (v.id === parentGirdId) { this.treeObj.defaultExpandedKeys.push(v.id) }