pansl пре 1 година
родитељ
комит
9893491d3e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pages/video/index.nvue

+ 1 - 1
pages/video/index.nvue

@@ -302,13 +302,13 @@
 			this.videoContext = uni.createVideoContext('myVideo')
 		},
 		mounted() {
-			this.initSwiperData(this.swiperCurrent + 1)
 			getVideoInfo({
 				video_id: this.video_id
 			}).then(res => {
 				// console.log(res, 'getVideoInfogetVideoInfogetVideoInfo')
 				this.videoInfo = res.data
 				this.initTabs();
+				this.initSwiperData(this.swiperCurrent + 1)
 			})
 		},
 		async onLoad(e) {