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

@ -87,9 +87,7 @@
>
<svg-icon :icon-class="player.playing ? 'pause' : 'play'"
/></button-icon>
<button-icon
:title="$t('player.next')"
@click.native="player.playNextTrack"
<button-icon :title="$t('player.next')" @click.native="playNextTrack"
><svg-icon icon-class="next"
/></button-icon>
</div>
@ -209,6 +207,13 @@ export default {
methods: {
...mapMutations(['toggleLyrics']),
...mapActions(['showToast', 'likeATrack']),
playNextTrack() {
if (this.player.isPersonalFM) {
this.player.playNextFMTrack();
} else {
this.player.playNextTrack();
}
},
goToNextTracksPage() {
if (this.player.isPersonalFM) return;
this.$route.name === 'next'