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