@ -93,7 +93,11 @@ export class HomeComponent implements OnInit {
this.userName = JSON.parse(sessionStorage.getItem('userdata')).userName
}
this.changePasswordPopup()
if(sessionStorage.getItem('isDefaultPassword') == 'true'){
//初次登陆修改密码弹窗
@ -120,8 +124,7 @@ export class HomeComponent implements OnInit {
this.isConfirmLoading = false;
this.isVisible = false;
//清除sessionStorage
sessionStorage.removeItem('isDefaultPassword')
}, err => {
this.message.create('warning', err.error.error.message);
@ -113,6 +113,7 @@ export class LoginComponent implements OnInit {
console.log('GetCurrentLoginInformations', data.result)
sessionStorage.setItem('userdata', JSON.stringify(data.result.user))
sessionStorage.setItem('userdataOfgasstation', JSON.stringify(data.result.user))
sessionStorage.setItem('isDefaultPassword', JSON.stringify(data.result.user.isDefaultPassword))
this.isLoading = false;
//记住密码
this.rememberInfo()