Skip to content

Commit

Permalink
fix: cannot skip to the next audio when the playlist has only one audio
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed Aug 15, 2018
1 parent edebe97 commit 7f4d95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@moefe/vue-aplayer/components/APlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,12 @@ export default class APlayer extends Vue.Component<

public skipBack() {
const playIndex = this.getPlayIndexByMode('skipBack');
this.currentMusic = this.currentList[playIndex];
this.currentMusic = { ...this.currentList[playIndex] };
}

public skipForward() {
const playIndex = this.getPlayIndexByMode('skipForward');
this.currentMusic = this.currentList[playIndex];
this.currentMusic = { ...this.currentList[playIndex] };
}

public showLrc() {
Expand Down

0 comments on commit 7f4d95a

Please sign in to comment.