feat: add clear queue button to next page

This commit is contained in:
qier222 2021-05-17 23:31:44 +08:00
parent ba4d211ee7
commit b05a686180
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
8 changed files with 72 additions and 39 deletions

View file

@ -620,4 +620,11 @@ export default class {
switchShuffle() {
this.shuffle = !this.shuffle;
}
clearPlayNextList() {
this._playNextList = [];
}
removeTrackFromQueue(index) {
this._playNextList.splice(index, 1);
}
}