Skip to content

Commit

Permalink
fix(sound panel): query resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Sep 19, 2024
1 parent e82a127 commit 234840b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/bgm/BgmPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 234840b

Please sign in to comment.