From e238a9e0520ec3fdef1125061607bbbf2ed95987 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Sat, 6 May 2023 15:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/grid/AppGridBlock/components/list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }