From 6d4db4e658e8dab44952f4ce4b6da6bf125cff07 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Thu, 18 Apr 2024 18:16:56 +0800 Subject: [PATCH] fix: cannot jump to music page on Favorites page and FavoritesPop (#606) close #606 --- src/components/TopBar/components/FavoritesPop.vue | 7 ++++++- src/contentScripts/views/Favorites/Favorites.vue | 11 ++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/TopBar/components/FavoritesPop.vue b/src/components/TopBar/components/FavoritesPop.vue index 691315ee..71be4434 100644 --- a/src/components/TopBar/components/FavoritesPop.vue +++ b/src/components/TopBar/components/FavoritesPop.vue @@ -123,6 +123,10 @@ function changeCategory(categoryItem: FavoriteCategory) { activatedFavoriteTitle.value = categoryItem.title } +function isMusic(item: FavoriteResource) { + return item.link.includes('bilibili://music') +} + defineExpose({ refreshFavoriteResources, }) @@ -224,7 +228,8 @@ defineExpose({