修正生命周期钩子,将beforeDestroy更改为beforeUnmount (#738) (#742)

优化将beforeDestroy更改为beforeUnmount
This commit is contained in:
奇淼(piexlmax
2021-09-26 11:37:19 +08:00
committed by GitHub
parent d4914d6eca
commit 8cc56c7db5
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ export default {
this.reload()
}, 1000 * 10)
},
beforeDestroy() {
beforeUnmount() {
clearInterval(this.timer)
this.timer = null
},