uni swiper輪播圖current,不生效可能2個原因:
1 swiper動態(tài)變化時,dom還沒更新,直接賦值了,換在nextTick中寫
2 官方文檔的【組件屬性設置不生效解決辦法】

uni current
this.swiperIndex=0 // 參考2必須先設置一次 (重要1)
if (this.curIndex == this.allQue.length - 1) { // 忽略 業(yè)務代碼,siwper長列表優(yōu)化上中下最后一個禁止右滑之類
this.$nextTick(()=>{ (重要2)
this.swiperIndex = 2;
})
}
// 配合重要1+重要2 ,可以去觀察swper上的current的確改變了
之前存在修改current不生效,用這樣解決的,的確可行