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 1/2] =?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(); } From c94b230d459b1e0dd8d27528d766480af9a40df0 Mon Sep 17 00:00:00 2001 From: first19326 <870390039@qq.com> Date: Tue, 2 Jan 2024 23:10:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20vue-aplayer=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4547945..4b411ba 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix" }, "dependencies": { - "@worstone/vue-aplayer": "^1.0.4", + "@worstone/vue-aplayer": "^1.0.6", "aplayer": "^1.10.1", "axios": "^1.6.3", "element-plus": "^2.4.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49e8290..0df02ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@worstone/vue-aplayer': - specifier: ^1.0.4 - version: 1.0.4 + specifier: ^1.0.6 + version: 1.0.6 aplayer: specifier: ^1.10.1 version: 1.10.1 @@ -1899,8 +1899,8 @@ packages: - vue dev: false - /@worstone/vue-aplayer@1.0.4: - resolution: {integrity: sha512-74zJaAsuNa20TjmDI4cpsk38vmP3v+mW+uTj5AhGjikzIEkPmVcHg+cNrX8G6ar7m8I+p4li/VRF0Ufu6JPJ5w==} + /@worstone/vue-aplayer@1.0.6: + resolution: {integrity: sha512-si0ShhO9xuENpFQdpJqKEWy3NR1Lt0r+T88u/gwZVw3b15CUizhrWpn8QdM08Ele+7FFkegsd2YDyANYhGtR6A==} dependencies: smoothscroll: 0.4.0 vue: 3.4.3