Skip to content

Commit

Permalink
1、修正issue#2769,swiper的destory报错的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlsea committed Apr 16, 2019
1 parent 0af1d46 commit 2ab7f9b
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 2ab7f9b

Please sign in to comment.