Skip to content

Commit

Permalink
fix: 纠正脏标的判断 (qier222#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cinvin authored Aug 7, 2024
1 parent 904e61b commit 7cb063d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/CoverRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
return this.type === 'playlist' && item.privacy === 10;
},
isExplicit(item) {
return this.type === 'album' && item.mark === 1056768;
return this.type === 'album' && (item.mark & 1048576) === 1048576;
},
getTitleLink(item) {
return `/${this.type}/${item.id}`;
Expand Down
4 changes: 2 additions & 2 deletions src/components/TrackListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
:exclude="$parent.albumObject.artist.name"
prefix="-"
/></span>
<span v-if="isAlbum && track.mark === 1318912" class="explicit-symbol"
<span v-if="isAlbum && (track.mark & 1048576) === 1048576" class="explicit-symbol"
><ExplicitSymbol
/></span>
</div>
<div v-if="!isAlbum" class="artist">
<span
v-if="track.mark === 1318912"
v-if="(track.mark & 1048576) === 1048576"
class="explicit-symbol before-artist"
><ExplicitSymbol :size="15"
/></span>
Expand Down
2 changes: 1 addition & 1 deletion src/views/album.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span v-else>Compilation by Various Artists</span>
</div>
<div class="date-and-count">
<span v-if="album.mark === 1056768" class="explicit-symbol"
<span v-if="(album.mark & 1048576) === 1048576" class="explicit-symbol"
><ExplicitSymbol
/></span>
<span :title="album.publishTime | formatDate">{{
Expand Down

0 comments on commit 7cb063d

Please sign in to comment.