mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix(CountDown): should clear timer when destroyed (#4918)
This commit is contained in:
@@ -44,6 +44,10 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
this.pause();
|
||||
},
|
||||
|
||||
methods: {
|
||||
start() {
|
||||
if (this.counting) {
|
||||
|
Reference in New Issue
Block a user