diff --git a/src/components/image-preview/video-preview.vue b/src/components/image-preview/video-preview.vue
index fc0cc02f..8f65deec 100644
--- a/src/components/image-preview/video-preview.vue
+++ b/src/components/image-preview/video-preview.vue
@@ -1,6 +1,17 @@
-
-
+
+
+
+
+
+
+
+
+
@@ -17,6 +28,7 @@
},
data() {
return {
+ showModel: false,
fileUrlShow:'',
watching:false
};
@@ -30,7 +42,7 @@
watch: {
fileId: {
handler(newval, oldval) {
- if(newval.indexOf('http:') === 0){
+ if(newval.indexOf('http') === 0){
this.fileUrlShow = newval
return
}
@@ -43,6 +55,9 @@
}
},
methods: {
+ playError(info){
+ console.log('err:',info)
+ },
getPreviewUrlBlob(id) {
if (!id) {
this.fileUrlShow = ''
@@ -60,8 +75,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 +88,31 @@
}
-