feat: 进入插件后自动滚动到顶部

This commit is contained in:
ZiuChen
2022-08-16 12:19:27 +08:00
parent 527d0518ba
commit 4a48da9612
2 changed files with 8 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ const updateShowList = (type) => {
.filter((item) => item.data.indexOf(filterText.value) !== -1)
.slice(0, GAP)
}
document.scrollingElement.scrollTop = 0
window.toTop()
}
const fullData = ref({ type: 'text', data: '' })