mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: cannot jump to music page on Favorites page and FavoritesPop (#606)
close #606
This commit is contained in:
@@ -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({
|
||||
<a
|
||||
v-for="item in favoriteResources"
|
||||
:key="item.id"
|
||||
:href="`//www.bilibili.com/video/${item.bvid}`" :target="isHomePage() ? '_blank' : '_self'" rel="noopener noreferrer"
|
||||
:href="isMusic(item) ? `https://www.bilibili.com/audio/au${item.id}` : `//www.bilibili.com/video/${item.bvid}`"
|
||||
:target="isHomePage() ? '_blank' : '_self'" rel="noopener noreferrer"
|
||||
hover:bg="$bew-fill-2"
|
||||
rounded="$bew-radius"
|
||||
m="first:t-50px last:b-4" p="2"
|
||||
|
||||
Reference in New Issue
Block a user