fix : PersonalFM can not found next track (#1217)

* fix : PersonalFM can not found next track

* do not call _loadPersonalFMNextTrack() when reload personal FM

* fix: revert

* fix: separate playNextTrack

* fix: moveToFMTrash

* fix

* fix: shortcut and _loadPersonalFMNextTrack()

* show toast when personal timeout

* fix: name
This commit is contained in:
memorydream 2022-01-12 01:04:40 +08:00 committed by GitHub
parent c7c6583523
commit 3ea5446fcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 117 additions and 31 deletions

View file

@ -151,7 +151,7 @@
</button-icon>
<button-icon
:title="$t('player.next')"
@click.native="player.playNextTrack"
@click.native="playNextTrack"
>
<svg-icon icon-class="next" />
</button-icon>
@ -318,6 +318,13 @@ export default {
methods: {
...mapMutations(['toggleLyrics']),
...mapActions(['likeATrack']),
playNextTrack() {
if (this.player.isPersonalFM) {
this.player.playNextFMTrack();
} else {
this.player.playNextTrack();
}
},
getLyric() {
if (!this.currentTrack.id) return;
return getLyric(this.currentTrack.id).then(data => {