mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: bugs
This commit is contained in:
parent
3822b498a1
commit
b2f758f0c4
11 changed files with 40 additions and 67 deletions
|
|
@ -21,7 +21,7 @@
|
|||
:src="currentTrack.al && currentTrack.al.picUrl | resizeImage(224)"
|
||||
@click="goToAlbum"
|
||||
/>
|
||||
<div class="track-info">
|
||||
<div class="track-info" :title="audioSource">
|
||||
<div class="name" @click="goToList">
|
||||
{{ currentTrack.name }}
|
||||
</div>
|
||||
|
|
@ -155,8 +155,8 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
setInterval(() => {
|
||||
this.progress = ~~this.player.seek();
|
||||
}, 500);
|
||||
this.progress = this.player.seek();
|
||||
}, 1000);
|
||||
if (isAccountLoggedIn()) {
|
||||
userLikedSongsIDs(this.data.user.userId).then((data) => {
|
||||
this.updateLikedSongs(data.ids);
|
||||
|
|
@ -186,6 +186,11 @@ export default {
|
|||
isCurrentTrackLiked() {
|
||||
return this.liked.songs.includes(this.currentTrack.id);
|
||||
},
|
||||
audioSource() {
|
||||
return this.player._howler?._src.includes("kuwo.cn")
|
||||
? "音源来自酷我音乐"
|
||||
: "";
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(["updateLikedSongs", "toggleLyrics"]),
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
class="track"
|
||||
:class="trackClass"
|
||||
:style="trackStyle"
|
||||
:title="track.reason"
|
||||
:title="showUnavailableSongInGreyStyle ? track.reason : ''"
|
||||
@mouseover="hover = true"
|
||||
@mouseleave="hover = false"
|
||||
>
|
||||
|
|
@ -147,6 +147,9 @@ export default {
|
|||
this.isMenuOpened
|
||||
);
|
||||
},
|
||||
showUnavailableSongInGreyStyle() {
|
||||
return this.$store.state.settings.showUnavailableSongInGreyStyle;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
goToAlbum() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue