mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
格式化代码以及修复观看历史部分专栏封面不显示的bug
This commit is contained in:
@@ -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]}`)
|
||||
}
|
||||
|
||||
@@ -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>({})
|
||||
|
||||
@@ -290,7 +290,7 @@ export interface Comment {
|
||||
'content': {
|
||||
'message': string
|
||||
'members': []
|
||||
'jump_url': {}
|
||||
'jump_url': NonNullable<unknown>
|
||||
'max_line': 6
|
||||
}
|
||||
'replies'?: Comment[]
|
||||
|
||||
Reference in New Issue
Block a user