From 360f3b4ac3621e2f7aef993d3821c52ebcb4625c Mon Sep 17 00:00:00 2001 From: cfdxkk Date: Sun, 31 Dec 2023 21:21:44 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20hotfix=20=E5=B0=9D=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=80=E4=B8=AA=E5=9C=A8=E8=8E=B7=E5=8F=96=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E8=A7=86=E9=A2=91=E8=AF=84=E8=AE=BA=E6=88=96=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=A0=87=E7=AD=BE=E6=97=B6=E7=A8=8B=E5=BA=8F=E7=BB=88?= =?UTF-8?q?=E6=AD=A2=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/video/kv[kvid].vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/video/kv[kvid].vue b/pages/video/kv[kvid].vue index 1f5983d7..4d4df7b6 100644 --- a/pages/video/kv[kvid].vue +++ b/pages/video/kv[kvid].vue @@ -33,13 +33,13 @@ if (videoData?.title && videoPartData?.link) { videoSource.value = videoPartData.link; videoDetails.value = { - videoPart: videoData.videoPart, - title: videoData.title, - videoTags: videoData.videoTags, + videoPart: videoData.videoPart ?? [], + title: videoData.title ?? "", + videoTags: videoData.videoTags ?? [], uploaderInfo: videoData.uploaderInfo, uploadDate: videoData.uploadDate, videoId: kvid, - videoCategory: videoData.videoCategory, + videoCategory: videoData.videoCategory ?? "", copyright: videoData.copyright, image: videoData.image, }; @@ -70,8 +70,8 @@ const getVideoCommentByKvidRequest: GetVideoCommentByKvidRequestDto = { videoId: kvid }; const videoCommentsResponse = await api.videoComment.getVideoCommentByKvid(getVideoCommentByKvidRequest); if (videoCommentsResponse.success) { - comments.value = videoCommentsResponse.videoCommentList; - commentsCount.value = videoCommentsResponse.videoCommentCount; + comments.value = videoCommentsResponse.videoCommentList ?? []; + commentsCount.value = videoCommentsResponse.videoCommentCount ?? 0; } }