Browse Source

登录

beijing
jingbowen 2 years ago
parent
commit
983f026a41
  1. 2
      src/app/pages/login/login.component.ts

2
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

Loading…
Cancel
Save