This commit is contained in:
小海
2020-05-15 20:46:13 +08:00
parent b266340ef1
commit dd6f85dc62
2 changed files with 3 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export class AdminComponent implements OnInit {
this.editInfoFormGroup = new FormGroup({
desc: new FormControl(),
displayName: new FormControl(),
email: new FormControl()
email: new FormControl({value: null, disabled: true})
});
this.initHelloWords()
}
@@ -74,6 +74,7 @@ export class AdminComponent implements OnInit {
},
error: err => {
this.messageService.error(err.msg);
this.gUserService.refreshUserInfo();
},
complete: null
});

View File

@@ -5,7 +5,7 @@ import {AdminComponent} from './admin.component';
import {NgZorroAntdModule} from 'ng-zorro-antd';
import {NzSpaceModule} from 'ng-zorro-antd/space';
import {AdminHeaderComponent} from '../../components/admin-header/admin-header.component';
import {ReactiveFormsModule} from "@angular/forms";
import {ReactiveFormsModule} from '@angular/forms';
@NgModule({