mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
Merge pull request #228 from starknt/fix/video-page
fix: handle `Topbar` video url location part #223
This commit is contained in:
@@ -115,6 +115,8 @@ function getHistoryUrl(item: HistoryItem) {
|
||||
if (activatedTab.value === 0) {
|
||||
if (item.history.business === HistoryType.PGC)
|
||||
return item.uri
|
||||
if (item.history.business === HistoryType.Archive && item?.videos && item.videos > 0)
|
||||
return `//www.bilibili.com/video/${item.history.bvid}?p=${item.history.page}`
|
||||
return `//www.bilibili.com/video/${item.history.bvid}`
|
||||
}
|
||||
// Live
|
||||
|
||||
@@ -93,9 +93,11 @@ export interface HistoryItem {
|
||||
epid?: number
|
||||
bvid?: string
|
||||
part?: string
|
||||
page?: number
|
||||
oid: number
|
||||
cid: number
|
||||
}
|
||||
videos?: number
|
||||
author_name: string
|
||||
author_face: string
|
||||
author_mid: string
|
||||
|
||||
Reference in New Issue
Block a user