From 983f026a41e75b14a8dfad50d9c226e076ff1d74 Mon Sep 17 00:00:00 2001 From: jingbowen <970029315@qq.com> Date: Thu, 29 Dec 2022 11:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index aa89e9c..a6bf179 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -137,7 +137,7 @@ export class LoginComponent implements OnInit { sessionStorage.setItem("encryptedAccessToken", data.result.encryptedAccessToken); this.http.get('/api/services/app/Session/GetCurrentLoginInformations').subscribe(async (data: any) => { console.log('GetCurrentLoginInformations', data.result) - if (data.result.user.menus.length == 0 && data.result.user.userName != "admin") { + if (data.result.user.menus.length == 0) { this.message.create('error', `当前用户未分配菜单`); this.isLoading = false return