From b487561759beb04244e25a27d74636f659cd54cb Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Wed, 29 Jun 2022 14:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/user/user.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index 3438fb0..dce54c0 100644 --- a/src/app/system-management/user/user.component.ts +++ b/src/app/system-management/user/user.component.ts @@ -97,6 +97,8 @@ export class UserComponent implements OnInit { this.nodes = [...this.toTree.toTree(data.result.items)] resolve(data) this.getAllUsers() + console.log(this.nodes); + this.defaultExpandedKeys = [this.nodes[0].id] this.defaultExpandedKeys = [...this.defaultExpandedKeys] })