mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 05:49:37 +03:00
example: cleartimeout in ssr example
This commit is contained in:
@@ -30,9 +30,12 @@ const ChildComponent = {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
setInterval(() => {
|
||||
this.interval = setInterval(() => {
|
||||
this.date = new Date()
|
||||
}, 1000)
|
||||
},
|
||||
destroyed () {
|
||||
clearInterval(this.interval)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user