surmon-china / vue-awesome-swiper

🏆 Swiper component for @vuejs
https://github.surmon.me/vue-awesome-swiper
MIT License
12.81k stars 1.97k forks source link

keep-alive缓存的页面切换回来分页消失 #346

Open veeking opened 6 years ago

veeking commented 6 years ago

场景:

AndrewZheng commented 6 years ago

我也遇到相同的问题,请问你后面怎么解决的?

houxiaozhao commented 6 years ago

我这里可以,一样的场景,一切正常 image

YiBanCangBai commented 6 years ago

同问

lin-hui-xin commented 5 years ago

请问解决了吗?

veeking commented 5 years ago

好久远了,我记得我好像是通过v-if来模拟重新渲染就正常了

请问解决了吗?

surmon-china commented 4 years ago

keep-alive 是个棘手的问题,理论上 v4.x 进行的 update 可以解决这个问题。

liuestc commented 3 years ago

I meet the same problem, how to solve ?

liuestc commented 3 years ago

keep-alive 是个棘手的问题,理论上 v4.x 进行的 update 可以解决这个问题。

I try to use this.swiper.update(), but It not working

"swiper": "^5.3.8", "vue-awesome-swiper": "^4.1.1",

the pagination element is a blank element

when i use keep-alive , i also tried to set property

        :auto-destroy="false"
        :delete-instance-on-destroy="false"
        :cleanup-styles-on-destroy="false"

doesn't work