mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 05:11:15 +00:00
add a buggy method to clear queue
This commit is contained in:
1 parent
44df8b47cb
commit
b618490676
2 files changed
+14
-1
No files matched your search
@@ -239,5 +239,14 @@ export default defineStore("Queue", {
|
||||
);
|
||||
writeQueue(this.from, this.tracks);
|
||||
},
|
||||
clearQueue() {
|
||||
this.tracks = [defaultTrack] as Track[];
|
||||
this.current = 0;
|
||||
this.currentid = "";
|
||||
this.next = 0;
|
||||
this.prev = 0;
|
||||
this.from = <From>{};
|
||||
console.log(this.current);
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user