From 077a91e9b13d5e6ff4bdee7eb97f987ab9775152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=96=87=E5=8D=8E=20wenhua=2Eliu?= Date: Tue, 16 Jul 2024 16:51:10 +0800 Subject: [PATCH 1/2] fix: Modify the description of on-unmount in Vue2 --- content/3-lifecycle/2-on-unmount/vue2/Time.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/3-lifecycle/2-on-unmount/vue2/Time.vue b/content/3-lifecycle/2-on-unmount/vue2/Time.vue index 59950e05..690b4ae6 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() { + beforeDestroy() { clearInterval(this.timer); }, }; From 10462335b4fc5340f5c4aafecbe94596752ec5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=96=87=E5=8D=8E=20wenhua=2Eliu?= Date: Wed, 17 Jul 2024 15:32:24 +0800 Subject: [PATCH 2/2] fix: Correct word spelling errors --- content/3-lifecycle/2-on-unmount/vue2/Time.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/3-lifecycle/2-on-unmount/vue2/Time.vue b/content/3-lifecycle/2-on-unmount/vue2/Time.vue index 690b4ae6..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); }, - beforeDestroy() { + beforeDestory() { clearInterval(this.timer); }, };