From 22b2745d844abe65dfb0a349fa7292608cab3fcf Mon Sep 17 00:00:00 2001 From: MengNianxiaoyao <2589141604@qq.com> Date: Thu, 28 Dec 2023 19:48:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90Bug=E3=80=91=E8=A7=82=E7=9C=8B?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E7=95=8C=E9=9D=A2=E9=83=A8=E5=88=86=E4=B8=93?= =?UTF-8?q?=E6=A0=8F=E5=B0=81=E9=9D=A2=E4=B8=8D=E6=98=BE=E7=A4=BA=20#87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/contentScripts/views/History/History.vue | 2 +- src/models/video/history.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contentScripts/views/History/History.vue b/src/contentScripts/views/History/History.vue index 50c9020a..4f619792 100644 --- a/src/contentScripts/views/History/History.vue +++ b/src/contentScripts/views/History/History.vue @@ -174,7 +174,7 @@ function getHistoryUrl(item: HistoryItem) { } function getHistoryItemCover(item: HistoryItem) { - if (item.history.business === 'article') { + if (item.history.business === 'article' || item.history.business === 'article-list') { if (item.covers) return removeHttpFromUrl(`${item.covers[0]}`) } diff --git a/src/models/video/history.ts b/src/models/video/history.ts index a8b5c381..9b4843ba 100644 --- a/src/models/video/history.ts +++ b/src/models/video/history.ts @@ -23,6 +23,7 @@ export enum Business { PGC = 'pgc', LIVE = 'live', ARTICLE = 'article', + ARTICLE_LIST = 'article-list', } export interface List {