mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 06:37:18 +08:00
fix: 纠正脏标的判断 (#2268)
This commit is contained in:
parent
904e61bee6
commit
7cb063d511
|
@ -96,7 +96,7 @@ export default {
|
||||||
return this.type === 'playlist' && item.privacy === 10;
|
return this.type === 'playlist' && item.privacy === 10;
|
||||||
},
|
},
|
||||||
isExplicit(item) {
|
isExplicit(item) {
|
||||||
return this.type === 'album' && item.mark === 1056768;
|
return this.type === 'album' && (item.mark & 1048576) === 1048576;
|
||||||
},
|
},
|
||||||
getTitleLink(item) {
|
getTitleLink(item) {
|
||||||
return `/${this.type}/${item.id}`;
|
return `/${this.type}/${item.id}`;
|
||||||
|
|
|
@ -42,13 +42,13 @@
|
||||||
:exclude="$parent.albumObject.artist.name"
|
:exclude="$parent.albumObject.artist.name"
|
||||||
prefix="-"
|
prefix="-"
|
||||||
/></span>
|
/></span>
|
||||||
<span v-if="isAlbum && track.mark === 1318912" class="explicit-symbol"
|
<span v-if="isAlbum && (track.mark & 1048576) === 1048576" class="explicit-symbol"
|
||||||
><ExplicitSymbol
|
><ExplicitSymbol
|
||||||
/></span>
|
/></span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!isAlbum" class="artist">
|
<div v-if="!isAlbum" class="artist">
|
||||||
<span
|
<span
|
||||||
v-if="track.mark === 1318912"
|
v-if="(track.mark & 1048576) === 1048576"
|
||||||
class="explicit-symbol before-artist"
|
class="explicit-symbol before-artist"
|
||||||
><ExplicitSymbol :size="15"
|
><ExplicitSymbol :size="15"
|
||||||
/></span>
|
/></span>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<span v-else>Compilation by Various Artists</span>
|
<span v-else>Compilation by Various Artists</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="date-and-count">
|
<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
|
><ExplicitSymbol
|
||||||
/></span>
|
/></span>
|
||||||
<span :title="album.publishTime | formatDate">{{
|
<span :title="album.publishTime | formatDate">{{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user