调整用户头像展示问题,title遗漏
This commit is contained in:
@@ -17,7 +17,10 @@
|
||||
<button nz-button nzType="primary" (click)="registration()">注册</button>
|
||||
</div>
|
||||
<div *ngIf="userInfo" id="info">
|
||||
<img [src]="userInfo.avatarImgUrl" alt="avatar" id="avatar">
|
||||
<!-- <img [src]="userInfo.avatarImgUrl" alt="avatar" id="avatar">-->
|
||||
<nz-avatar [nzSrc]="userInfo.avatarImgUrl" *ngIf="userInfo.avatarImgUrl===noAvatarUrl"></nz-avatar>
|
||||
<nz-avatar [nzText]="userInfo.displayName" style="background: #f56a00"
|
||||
*ngIf="userInfo.avatarImgUrl!==noAvatarUrl"></nz-avatar>
|
||||
<button nz-button nzType="link" class="info-name"
|
||||
nz-dropdown [nzDropdownMenu]="menu" nzPlacement="bottomRight" nzTrigger="click">
|
||||
{{userInfo.displayName}}<i nz-icon nzType="caret-down" nzTheme="outline"></i>
|
||||
|
||||
@@ -49,7 +49,7 @@ export class HeaderComponent implements OnInit {
|
||||
@Output() registrationEvent = new EventEmitter();
|
||||
size: 'large' | 'default';
|
||||
currentPath: string;
|
||||
|
||||
noAvatarUrl = 'https://cdn.celess.cn/'
|
||||
|
||||
public pageList: {
|
||||
path: string;
|
||||
|
||||
Reference in New Issue
Block a user