Skip to content

Commit

Permalink
1、修正issue#2769,swiper的destory报错的BUG (#2790)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam authored Apr 16, 2019
2 parents bf1b242 + 2ab7f9b commit b51b436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-components/src/components/swiper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Swiper extends Nerv.Component {

componentWillUnmount () {
this.$el = null
this.mySwiper.destroy()
if (this.mySwiper) this.mySwiper.destroy()
}

render () {
Expand Down

0 comments on commit b51b436

Please sign in to comment.