diff --git a/src/components/image-preview/video-preview.vue b/src/components/image-preview/video-preview.vue index fc0cc02f..bdb15883 100644 --- a/src/components/image-preview/video-preview.vue +++ b/src/components/image-preview/video-preview.vue @@ -1,6 +1,11 @@ @@ -17,6 +22,7 @@ }, data() { return { + showModel: false, fileUrlShow:'', watching:false }; @@ -30,7 +36,7 @@ watch: { fileId: { handler(newval, oldval) { - if(newval.indexOf('http:') === 0){ + if(newval.indexOf('http') === 0){ this.fileUrlShow = newval return } @@ -43,6 +49,9 @@ } }, methods: { + playError(info){ + console.log('err:',info) + }, getPreviewUrlBlob(id) { if (!id) { this.fileUrlShow = '' @@ -60,8 +69,9 @@ }, }, mounted() { + console.log(this.fileId) if (this.fileId) { - if(this.fileId.indexOf('http:') === 0){ + if(this.fileId.indexOf('http') === 0){ this.fileUrlShow = this.fileId }else{ this.getPreviewUrlBlob(this.fileId); @@ -72,13 +82,22 @@ } -