From 34e241b4f15e3ed64eb4e1585458193772824021 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Fri, 19 Jan 2024 01:08:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B6=E6=A0=8F=E7=9A=84=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=AE=B0=E5=BD=95=EF=BC=8C=E8=B7=B3=E8=BD=AC=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=97=B6=E4=BB=85up=E4=B8=BB=E5=88=B6=E4=BD=9C?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=8F=AF=E4=BB=A5=E8=B7=B3=E8=BD=AC=E6=88=90?= =?UTF-8?q?=E5=8A=9F=EF=BC=8C=E5=85=B6=E4=BD=99=E7=9A=86=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=20#193?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TopBar/components/HistoryPop.vue | 4 +++- src/components/TopBar/types.ts | 1 + src/contentScripts/views/History/History.vue | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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() {