调整用户头像展示问题,title遗漏

This commit is contained in:
小海
2020-05-16 23:05:57 +08:00
parent 67c509a245
commit 565fc9f673
5 changed files with 16 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import {ApiService} from '../../../api/api.service';
import {NzMessageService} from 'ng-zorro-antd';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {Observable} from 'rxjs';
import {Title} from '@angular/platform-browser';
@Component({
selector: 'app-admin-link',
@@ -13,7 +14,8 @@ import {Observable} from 'rxjs';
})
export class AdminLinkComponent implements OnInit {
constructor(private apiService: ApiService, private messageService: NzMessageService) {
constructor(private apiService: ApiService, private messageService: NzMessageService, private title: Title) {
this.title.setTitle('小海博客 | 友链管理');
this.formGroup = new FormGroup({
id: new FormControl(null),
name: new FormControl(null, [Validators.required]),