fix: 在视频页的顶部栏 历史记录中跳转错误 #45

This commit is contained in:
Hakadao
2023-10-01 15:48:03 +08:00
parent 58bdeab0c3
commit 2087a659eb

View File

@@ -113,7 +113,7 @@ function onClickTab(tabId: number) {
function getHistoryUrl(item: HistoryItem) {
// Video
if (activatedTab.value === 0)
return item.history.bvid
return `https://www.bilibili.com/video/${item.history.bvid}`
// Live
else if (activatedTab.value === 1)
return `//live.bilibili.com/${item.history.oid}`