diff --git a/src/components/Topbar/components/HistoryPop.vue b/src/components/Topbar/components/HistoryPop.vue index 9f8db048..fa8a72ff 100644 --- a/src/components/Topbar/components/HistoryPop.vue +++ b/src/components/Topbar/components/HistoryPop.vue @@ -119,7 +119,9 @@ function getHistoryUrl(item: HistoryItem) { return `//live.bilibili.com/${item.history.oid}` // Article else if (activatedTab.value === 2) - return `/read/cv${item.history.oid}` + if (item.history.cid == 0) + return `/read/cv${item.history.oid}` + else return `/read/cv${item.history.cid}` return '' } diff --git a/src/components/Topbar/types.ts b/src/components/Topbar/types.ts index f8bf14da..18be8312 100644 --- a/src/components/Topbar/types.ts +++ b/src/components/Topbar/types.ts @@ -94,6 +94,7 @@ export interface HistoryItem { bvid?: string part?: string oid: number + cid: number } author_name: string author_face: string diff --git a/src/contentScripts/views/History/History.vue b/src/contentScripts/views/History/History.vue index 3e89e8ea..04badbe4 100644 --- a/src/contentScripts/views/History/History.vue +++ b/src/contentScripts/views/History/History.vue @@ -162,8 +162,9 @@ function getHistoryUrl(item: HistoryItem) { else if (item.history.business === 'live') return `//live.bilibili.com/${item.history.oid}` else if (item.history.business === 'article') - return `//www.bilibili.com/read/cv${item.history.oid}` - + if (item.history.cid == 0) + return `//www.bilibili.com/read/cv${item.history.oid}` + else return `//www.bilibili.com/read/cv${item.history.cid}` return '' }