diff --git a/src/components/TopBar/components/HistoryPop.vue b/src/components/TopBar/components/HistoryPop.vue index 805ae686..f196a27a 100644 --- a/src/components/TopBar/components/HistoryPop.vue +++ b/src/components/TopBar/components/HistoryPop.vue @@ -113,7 +113,9 @@ function onClickTab(tabId: number) { function getHistoryUrl(item: HistoryItem) { // Video if (activatedTab.value === 0) { - return `https://www.bilibili.com/video/${item.history.bvid}` + if (item.history.business === HistoryType.PGC) + return item.uri + return `//www.bilibili.com/video/${item.history.bvid}` } // Live else if (activatedTab.value === 1) { diff --git a/src/components/TopBar/types.ts b/src/components/TopBar/types.ts index e495770c..07617036 100644 --- a/src/components/TopBar/types.ts +++ b/src/components/TopBar/types.ts @@ -104,6 +104,7 @@ export interface HistoryItem { duration: number kid: number live_status: 0 | 1 // 0:未开播 1:已开播 + uri: string } export interface FavoriteCategory { diff --git a/src/contentScripts/views/History/History.vue b/src/contentScripts/views/History/History.vue index aed379fd..d6770c93 100644 --- a/src/contentScripts/views/History/History.vue +++ b/src/contentScripts/views/History/History.vue @@ -352,7 +352,7 @@ function jumpToLoginPage() {