Commit d895eb12 by zhanghaozhe

swiper

parent 420e524a
......@@ -19,7 +19,7 @@ class SystemBulletScreen extends Component {
}
componentWillUnmount() {
this.swiper && this.swiper.destroy(true, true)
this.swiper && this.swiper.destroy()
}
......
......@@ -6,6 +6,8 @@ import './bullet-screen.scss'
class UserBulletScreen extends Component {
swiper
state = {
bulletScreenData: []
}
......@@ -14,6 +16,10 @@ class UserBulletScreen extends Component {
this.getBulletScreenData(true)
}
componentWillUpdate() {
this.swiper && this.swiper.destroy()
}
initializeBulletScreen = () => {
const _this = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment