mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
perf: scroll to top if tab is changed (#688)
This commit is contained in:
parent
19e4eef0b8
commit
763c3d31e0
1 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,11 @@ export default {
|
|||
beforeDestroy() {
|
||||
document.removeEventListener('keydown', this.handleKeyboardShortcut)
|
||||
},
|
||||
watch: {
|
||||
tab() {
|
||||
window.scrollTo(0, 0)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
close() {
|
||||
this.$router.back()
|
||||
|
|
Loading…
Add table
Reference in a new issue