diff --git a/src/components/VideoCard.vue b/src/components/VideoCard.vue index e649ca8d..e17a2491 100644 --- a/src/components/VideoCard.vue +++ b/src/components/VideoCard.vue @@ -3,15 +3,15 @@ import { removeHttpFromUrl } from '~/utils/main' import { calcCurrentTime, calcTimeSince, numFormatter } from '~/utils/dataFormatter' const props = defineProps<{ - duration: number + duration?: number title: string cover: string - author: string - authorFace: string - mid: number - view: number - danmaku: number - publishedTimestamp: number + author?: string + authorFace?: string + mid?: number + view?: number + danmaku?: number + publishedTimestamp?: number bvid?: string aid?: number }>() @@ -132,6 +132,7 @@ function gotoChannel(mid: number) {