Skip to content

Commit c0c15fc

Browse files
committed
clear slide timer
1 parent 5471cac commit c0c15fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/slide/slide.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
methods: {
4949
refresh() {
5050
this.slide && this.slide.destroy()
51+
clearTimeout(this._timer)
5152
this.$nextTick(() => {
5253
if (this.slide === null) {
5354
return
5455
}
55-
clearTimeout(this._timer)
5656
this.currentPageIndex = 0
5757
this.dots = 0
5858
this._setSlideWidth()

0 commit comments

Comments
 (0)