mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 00:02:02 +03:00
fix: Duplicate intervals (#689) @Larsluph
This commit is contained in:
parent
763c3d31e0
commit
a822702e69
2 changed files with 3 additions and 7 deletions
|
@ -289,13 +289,13 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch('INIT_INTERVALS')
|
||||
document.addEventListener('keydown', this.handleKeyboardShortcut)
|
||||
document.addEventListener('dragenter', this.detectDragEnter)
|
||||
this.$store.state.selectMode = false
|
||||
window.scrollTo(0, 0)
|
||||
},
|
||||
created() {
|
||||
this.$store.dispatch('INIT_INTERVALS')
|
||||
this.$store.commit('FETCH_CATEGORIES')
|
||||
this.$store.commit('FETCH_TAGS')
|
||||
if (this.input) this.searchFilterEnabled = true
|
||||
|
|
|
@ -84,16 +84,12 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch('INIT_INTERVALS')
|
||||
document.addEventListener('keydown', this.handleKeyboardShortcut)
|
||||
},
|
||||
created() {
|
||||
this.$store.dispatch('INIT_INTERVALS')
|
||||
},
|
||||
beforeDestroy() {
|
||||
document.removeEventListener('keydown', this.handleKeyboardShortcut)
|
||||
},
|
||||
destroyed() {
|
||||
this.$store.commit('REMOVE_INTERVALS')
|
||||
document.removeEventListener('keydown', this.handleKeyboardShortcut)
|
||||
},
|
||||
methods: {
|
||||
close() {
|
||||
|
|
Loading…
Add table
Reference in a new issue