diff --git a/package.json b/package.json index 45479454c5..4b411ba67b 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 49e8290b32..0df02efaf6 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 diff --git a/src/components/Music.vue b/src/components/Music.vue index 3ea94a7f37..31bbec1f4a 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(); }