From 7eeed47203dbfcb74630ae27ca775ae8cbc60033 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 17 Oct 2017 21:57:46 -0500 Subject: [PATCH] [bugfix] Swipe should clear autoplay timer when destroyed (#218) * [bugfix] Checkbox border render error in weixin browser * [bugfix] TreeSelect dependency path error * [bugfix] Swipe should clear autoplay timer when destroyed --- packages/swipe/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/swipe/index.vue b/packages/swipe/index.vue index 90b33a77d..33a8a6952 100644 --- a/packages/swipe/index.vue +++ b/packages/swipe/index.vue @@ -58,6 +58,10 @@ export default { this.initialize(); }, + destroyed() { + clearTimeout(this.timer); + }, + watch: { swipes() { this.initialize();