Skip to content

Commit

Permalink
fix: Modify the description of on-unmount in Vue2
Browse files Browse the repository at this point in the history
  • Loading branch information
刘文华 wenhua.liu committed Jul 16, 2024
1 parent 0a32b62 commit 077a91e
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 077a91e

Please sign in to comment.