|
|
|
@ -147,11 +147,13 @@ export class LoginComponent implements OnInit {
|
|
|
|
|
sessionStorage.setItem('isDefaultPassword', JSON.stringify(data.result.user.isDefaultPassword)) |
|
|
|
|
sessionStorage.setItem('isPasswordExpired', JSON.stringify(data.result.user.isPasswordExpired)) |
|
|
|
|
this.isLoading = false; |
|
|
|
|
this.getGasStationBaseInfo() |
|
|
|
|
if(data.result.user.organization.isGasStation){ |
|
|
|
|
this.getGasStationBaseInfo() |
|
|
|
|
if(data.result.user.menus[0].name=="数字油站" && data.result.user.menus.length==1&&!this.init3D){ |
|
|
|
|
this.message.create('error', `当前用户油站未开通3D且仅分配油站菜单`); |
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//记住密码
|
|
|
|
|
this.rememberInfo() |
|
|
|
|