提交 da9ae769 编写于 作者: 雪洛's avatar 雪洛

Revert "fix: 修正不符合vue规范的用法"

This reverts commit a52ecdbb.
上级 a52ecdbb
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
state: ["unPlay", "unPlay", "unPlay"] as string[] state: ["unPlay", "unPlay", "unPlay"] as string[]
} }
}, },
created() { beforeCreate() {
this.list = this.getData() this.list = this.getData()
this.visibleList = this.list.slice(0, 3) this.visibleList = this.list.slice(0, 3)
}, },
...@@ -111,10 +111,10 @@ ...@@ -111,10 +111,10 @@
console.error("onLoadstart video" + index ); console.error("onLoadstart video" + index );
}, },
getVideoContext(index : number) : VideoContext{ getVideoContext(index : number) : VideoContext{
let videoContext : VideoContext | null = this.$data.$videoContextMap.get('video-'+index) let videoContext : VideoContext | null = this.$videoContextMap.get('video-'+index)
if(videoContext == null){ if(videoContext == null){
videoContext = uni.createVideoContext('video-'+index, this) as VideoContext videoContext = uni.createVideoContext('video-'+index, this) as VideoContext
this.$data.$videoContextMap.set('video-'+index,videoContext) this.$videoContextMap.set('video-'+index,videoContext)
} }
return videoContext return videoContext
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册