修复列表切换问题

pull/733/head
lyswhut 2021-11-19 22:15:58 +08:00
parent 976be6d96f
commit 08c6a4e2fb
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ div(:class="$style.songList")
<script>
import { mapGetters } from 'vuex'
import { scrollTo, clipboardWriteText, assertApiSupport } from '../../utils'
import { clipboardWriteText, assertApiSupport } from '../../utils'
import musicSdk from '../../utils/music'
import { windowSizeList } from '@common/config'
export default {
@ -189,7 +189,7 @@ export default {
list(n) {
this.removeAllSelect()
if (!this.list.length) return
this.$nextTick(() => scrollTo(this.$refs.dom_scrollContent, 0))
this.$nextTick(() => this.$refs.list.scrollTo(0))
},
},
data() {