Commit d895eb12 by zhanghaozhe

swiper

parent 420e524a
...@@ -19,7 +19,7 @@ class SystemBulletScreen extends Component { ...@@ -19,7 +19,7 @@ class SystemBulletScreen extends Component {
} }
componentWillUnmount() { componentWillUnmount() {
this.swiper && this.swiper.destroy(true, true) this.swiper && this.swiper.destroy()
} }
......
...@@ -6,6 +6,8 @@ import './bullet-screen.scss' ...@@ -6,6 +6,8 @@ import './bullet-screen.scss'
class UserBulletScreen extends Component { class UserBulletScreen extends Component {
swiper
state = { state = {
bulletScreenData: [] bulletScreenData: []
} }
...@@ -14,6 +16,10 @@ class UserBulletScreen extends Component { ...@@ -14,6 +16,10 @@ class UserBulletScreen extends Component {
this.getBulletScreenData(true) this.getBulletScreenData(true)
} }
componentWillUpdate() {
this.swiper && this.swiper.destroy()
}
initializeBulletScreen = () => { initializeBulletScreen = () => {
const _this = this 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