优化滚动

This commit is contained in:
lyswhut
2022-04-07 09:54:06 +08:00
parent 6de84d3b9b
commit 2e5adeb50c
4 changed files with 21 additions and 17 deletions
+4 -2
View File
@@ -66,7 +66,7 @@ div(:class="$style.search")
<script>
import { mapGetters, mapActions, mapMutations } from 'vuex'
import { scrollTo, clipboardWriteText, assertApiSupport, openUrl } from '@renderer/utils'
import { clipboardWriteText, assertApiSupport, openUrl } from '@renderer/utils'
import musicSdk from '@renderer/utils/music'
import { defaultList } from '@renderer/core/share/list'
import { getList } from '@renderer/core/share/utils'
@@ -264,7 +264,7 @@ export default {
this.search({ text, page, limit: this.listInfo.limit }).then(data => {
this.page = page
this.$nextTick(() => {
scrollTo(this.$refs.dom_scrollContent, 0)
this.$refs.dom_scrollContent.scrollTo(0, 0)
})
}).finally(() => {
this.isLoading = false
@@ -569,6 +569,8 @@ export default {
.tbody {
flex: auto;
overflow-y: auto;
scroll-behavior: smooth;
td {
font-size: 12px;
:global(.badge) {