From eb707677c81a8b6b3dc543435695e56e1c1bdfd8 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Thu, 21 Dec 2023 01:02:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AA=BF=E6=95=B4=E5=9B=A0?= =?UTF-8?q?=E4=B8=8D=E6=9C=83=E5=AF=ABts=E8=80=8C=E5=AF=AB=E5=87=BA?= =?UTF-8?q?=E4=BE=86=E7=9A=84=E5=BC=B1=E6=99=BA=E5=AF=AB=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/contentScripts/views/Home/components/ForYou.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/contentScripts/views/Home/components/ForYou.vue b/src/contentScripts/views/Home/components/ForYou.vue index 623bbc12..4776c8b8 100644 --- a/src/contentScripts/views/Home/components/ForYou.vue +++ b/src/contentScripts/views/Home/components/ForYou.vue @@ -184,14 +184,14 @@ function jumpToLoginPage() { :duration-str="video.cover_right_text" :title="`${video.title}`" :cover="`${video.cover}`" - :author="'mask' in video && video.mask && 'avatar' in video.mask ? video.mask.avatar.text : ''" - :author-face="'mask' in video && video.mask && 'avatar' in video.mask ? video.mask.avatar.cover : ''" - :mid="'mask' in video && video.mask && 'avatar' in video.mask && video.mask.avatar ? video.mask.avatar.up_id : 0" - :capsule-text="video.desc ? video.desc.split('·')[1] : ''" + :author="video?.mask?.avatar.text" + :author-face="video?.mask?.avatar.cover" + :mid="video?.mask?.avatar.up_id " + :capsule-text="video?.desc?.split('·')[1]" :bvid="video.bvid" :view-str="video.cover_left_text_1" :danmaku-str="video.cover_left_text_2" - :cid="video.player_args ? video.player_args.cid : 0" + :cid="video?.player_args?.cid " show-preview />