mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 13:44:42 +00:00
test promise in playing audio
This commit is contained in:
1 parent
c49e1e48f1
commit
741e34c5ee
4 files changed
+46
-37
No files matched your search
@@ -58,6 +58,7 @@
|
||||
import { ref, toRefs } from "@vue/reactivity";
|
||||
import perks from "@/composables/perks.js";
|
||||
import audio from "@/composables/playAudio.js";
|
||||
import { watch } from "@vue/runtime-core";
|
||||
|
||||
export default {
|
||||
props: ["up_next"],
|
||||
@@ -72,6 +73,14 @@ export default {
|
||||
emit("expandQueue");
|
||||
};
|
||||
|
||||
watch(is_expanded, (newVal) => {
|
||||
if (newVal) {
|
||||
setTimeout(() => {
|
||||
perks.focusCurrent();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
const { playNext } = audio;
|
||||
const { playAudio } = audio;
|
||||
|
||||
|
||||
Reference in new issue
Block a user