格式化代码以及修复观看历史部分专栏封面不显示的bug

This commit is contained in:
MengNianxiaoyao
2023-12-28 19:40:58 +08:00
parent e1144d0b83
commit ce2e545c24
15 changed files with 42 additions and 36 deletions

View File

@@ -174,7 +174,7 @@ function getHistoryUrl(item: HistoryItem) {
}
function getHistoryItemCover(item: HistoryItem) {
if (item.history.business === 'article') {
if (item.history.business === 'article' || item.history.business === 'article-list') {
if (item.covers)
return removeHttpFromUrl(`${item.covers[0]}`)
}

View File

@@ -10,8 +10,8 @@ const videoContent = ref() as Ref<HTMLElement>
const danmukuContent = ref() as Ref<HTMLElement>
const recommendedContent = ref() as Ref<HTMLElement>
const videoEpisodeList = ref() as Ref<HTMLElement>
const videoInfo = reactive<VideoInfo | {}>({}) as UnwrapNestedRefs<VideoInfo>
const userCardInfo = reactive<UserCardInfo | {}>({}) as UnwrapNestedRefs<UserCardInfo>
const videoInfo = reactive<VideoInfo | NonNullable<unknown>>({}) as UnwrapNestedRefs<VideoInfo>
const userCardInfo = reactive<UserCardInfo | NonNullable<unknown>>({}) as UnwrapNestedRefs<UserCardInfo>
// const videoPlayerPreviousPosition = reactive<{ right: string; bottom: string }>({ right: '0', bottom: '0' })
const commentList = reactive<Comment[]>([])
const commentPageInfo = reactive<any>({})

View File

@@ -290,7 +290,7 @@ export interface Comment {
'content': {
'message': string
'members': []
'jump_url': {}
'jump_url': NonNullable<unknown>
'max_line': 6
}
'replies'?: Comment[]