diff --git a/content/3-lifecycle/2-on-unmount/vue2/Time.vue b/content/3-lifecycle/2-on-unmount/vue2/Time.vue index 59950e05..2e6c9896 100644 --- a/content/3-lifecycle/2-on-unmount/vue2/Time.vue +++ b/content/3-lifecycle/2-on-unmount/vue2/Time.vue @@ -11,7 +11,7 @@ export default { this.time = new Date().toLocaleTimeString(); }, 1000); }, - beforeUnmount() { + beforeDestory() { clearInterval(this.timer); }, };