Skip to content

Commit 08c6a4e

Browse files
committed
修复列表切换问题
1 parent 976be6d commit 08c6a4e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/renderer/components/material/SongList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ div(:class="$style.songList")
7070

7171
<script>
7272
import { mapGetters } from 'vuex'
73-
import { scrollTo, clipboardWriteText, assertApiSupport } from '../../utils'
73+
import { clipboardWriteText, assertApiSupport } from '../../utils'
7474
import musicSdk from '../../utils/music'
7575
import { windowSizeList } from '@common/config'
7676
export default {
@@ -189,7 +189,7 @@ export default {
189189
list(n) {
190190
this.removeAllSelect()
191191
if (!this.list.length) return
192-
this.$nextTick(() => scrollTo(this.$refs.dom_scrollContent, 0))
192+
this.$nextTick(() => this.$refs.list.scrollTo(0))
193193
},
194194
},
195195
data() {

0 commit comments

Comments
 (0)