From 1c7f189d1126cbddcc02331a5d9f5e8efd2cf012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=B5=B7?= Date: Sat, 16 May 2020 21:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/admin/admin-dashboard/admin-dashboard.component.html | 3 ++- index/src/app/view/article/article.component.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index/src/app/view/admin/admin-dashboard/admin-dashboard.component.html b/index/src/app/view/admin/admin-dashboard/admin-dashboard.component.html index 72daad6..4678b48 100644 --- a/index/src/app/view/admin/admin-dashboard/admin-dashboard.component.html +++ b/index/src/app/view/admin/admin-dashboard/admin-dashboard.component.html @@ -24,7 +24,8 @@ - + diff --git a/index/src/app/view/article/article.component.ts b/index/src/app/view/article/article.component.ts index 5356071..ae89852 100644 --- a/index/src/app/view/article/article.component.ts +++ b/index/src/app/view/article/article.component.ts @@ -48,7 +48,7 @@ export class ArticleComponent implements OnInit { error: (err) => null, next: data => { this.user = data.result; - this.avatarImgUrl = data.result.avatarImgUrl; + if (data.result) this.avatarImgUrl = data.result.avatarImgUrl; } }); this.comment = new CommentReq(true);