Skip to content

Commit

Permalink
fix: On unmount example for Vue2 (#252)
Browse files Browse the repository at this point in the history
* fix: On unmount  example for Vue2

* fix: props  example for Vue2

* Revert "fix: props  example for Vue2"
  • Loading branch information
zzjiaxiang authored Oct 4, 2024
1 parent f859395 commit 7b2a3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/3-lifecycle/2-on-unmount/vue2/Time.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
this.time = new Date().toLocaleTimeString();
}, 1000);
},
beforeUnmount() {
beforeDestroy() {
clearInterval(this.timer);
},
};
Expand Down

0 comments on commit 7b2a3f1

Please sign in to comment.