Skip to content

Commit 93353c8

Browse files
xxyCoderxxyCoder
and
xxyCoder
authored
fix: slide在执行play时候可能为null导致报错 (#830)
Co-authored-by: xxyCoder <1696944145@qq.com>
1 parent 7717802 commit 93353c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/slide/slide.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
_play() {
253253
clearTimeout(this._timer)
254254
this._timer = setTimeout(() => {
255-
this.slide.next()
255+
this.slide && this.slide.next()
256256
}, this.interval)
257257
},
258258
_deactivated() {

0 commit comments

Comments
 (0)