Ver Fonte

视频页优化

pansl há 1 ano atrás
pai
commit
9893491d3e
1 ficheiros alterados com 1 adições e 1 exclusões
  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) {