From 27780c65580273abbed77826fe6b208f410d0c56 Mon Sep 17 00:00:00 2001 From: first19326 <870390039@qq.com> Date: Tue, 2 Jan 2024 23:09:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=99=A8=E6=9C=AA=E5=8A=A0=E8=BD=BD=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=88=96=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E9=94=AE=E7=9B=98=E6=8E=A7=E5=88=B6=E4=BA=8B=E4=BB=B6=E4=BB=8D?= =?UTF-8?q?=E6=97=A7=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Music.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Music.vue b/src/components/Music.vue index 3ea94a7..31bbec1 100644 --- a/src/components/Music.vue +++ b/src/components/Music.vue @@ -119,6 +119,9 @@ const changeMusicIndex = (type) => { onMounted(() => { // 空格键事件 window.addEventListener("keydown", (e) => { + if (!store.musicIsOk) { + return ; + } if (e.code == "Space") { changePlayState(); }