Merge pull request #228 from starknt/fix/video-page

fix: handle `Topbar` video url location part #223
This commit is contained in:
Hakadao
2024-01-27 23:00:25 +08:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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