Skip to content

Commit d3f009e

Browse files
committed
update: 全屏滑动视频 this.$refs 改为 uni.createVideoContext
1 parent 0ca5681 commit d3f009e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎pages/template/swiper-vertical/swiper-vertical.nvue‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
this._videoIndex = 0;
6363
this._videoContextList = [];
6464
for (var i = 0; i < this.videoList.length; i++) {
65-
//this._videoContextList.push(uni.createVideoContext('video' + i, this));
66-
this._videoContextList.push(this.$refs['video' + i][0]);
65+
this._videoContextList.push(uni.createVideoContext('video' + i, this));
6766
}
6867
this._videoDataIndex = 0;
6968
},

0 commit comments

Comments
 (0)