From 3121a2bdb5cff388c327e9b1b1fdc425967b72ae Mon Sep 17 00:00:00 2001 From: yi-ge Date: Fri, 17 Jul 2020 10:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=84=E8=AE=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/post/_id.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/post/_id.vue b/pages/post/_id.vue index 9659bcc..6a25103 100644 --- a/pages/post/_id.vue +++ b/pages/post/_id.vue @@ -53,7 +53,7 @@ .comment-userinfo(v-else) .comment-avatar img(:src="visitorInfo.avatarURL") - .comment-nickname {{ visitorInfo.nickname }} + .comment-nickname {{ visitorInfo.nickname ? visitorInfo.nickname : (visitorInfo.username || '匿名') }} .comment-logout(@click="commentLogout") 退出 .comment-btn(@click="commentCommit('editor')") 发布 .comment-reply-commit(id="comment-reply-commit", v-show="replyID") @@ -65,7 +65,7 @@ .comment-userinfo(v-else) .comment-avatar img(:src="visitorInfo.avatarURL") - .comment-nickname {{ visitorInfo.nickname }} + .comment-nickname {{ visitorInfo.nickname ? visitorInfo.nickname : (visitorInfo.username || '匿名') }} .comment-logout(@click="commentLogout") 退出 .comment-btn(@click="commentCommit('editor-reply')") 发布 ins.adsbygoogle(style="display:block; text-align:center; margin-top:20px;", data-ad-layout="in-article", data-ad-format="fluid", data-ad-client="ca-pub-2143583075951360", data-ad-slot="4741804954")