浏览代码

视频页优化

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) {