From 234840b8078a9c0f2ab07a319a963f086de54c87 Mon Sep 17 00:00:00 2001 From: darwintree <17946284+darwintree@users.noreply.github.com> Date: Thu, 19 Sep 2024 23:14:01 +0800 Subject: [PATCH] fix(sound panel): query resolve --- src/components/bgm/BgmPanel.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/bgm/BgmPanel.vue b/src/components/bgm/BgmPanel.vue index daa7cc5..354fca3 100644 --- a/src/components/bgm/BgmPanel.vue +++ b/src/components/bgm/BgmPanel.vue @@ -139,12 +139,12 @@ function increaseIndex() { watch( () => route.query, (newQuery) => { - const { type, index } = newQuery + const { type, bgmIndex } = newQuery if (type === 'bgm' || type === 'se') { audioType.value = type - if (index) { - audioInput.value = index.toString() - audio.value = index.toString() + if (bgmIndex) { + audioInput.value = bgmIndex.toString() + audio.value = bgmIndex.toString() fetchData(1) } }