修改课程记录bug
This commit is contained in:
@@ -28,13 +28,17 @@
|
||||
<script>
|
||||
import { downloadFile,getPreviewFileUrl } from'@/api/common.js'
|
||||
import { useStorageStore } from "@/store/storage.js"
|
||||
|
||||
import { get_base_url } from '@/api/request.js'
|
||||
export default {
|
||||
name:"video-preview",
|
||||
props:{
|
||||
fileId:{
|
||||
default:'',
|
||||
type:String
|
||||
},
|
||||
src:{
|
||||
default:'',
|
||||
type:String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -42,7 +46,8 @@
|
||||
showModel: false,
|
||||
fileUrlShow:'',
|
||||
watching:false,
|
||||
videoContext: null
|
||||
videoContext: null,
|
||||
base_url: get_base_url()
|
||||
};
|
||||
},
|
||||
computed:{
|
||||
@@ -65,6 +70,16 @@
|
||||
},
|
||||
immediate: true,
|
||||
deep: true,
|
||||
},
|
||||
src: {
|
||||
handler(newval, oldval) {
|
||||
// if (newval && this.watching) {
|
||||
this.fileUrlShow = this.base_url + newval
|
||||
console.log('this.fileUrlShow', this.fileUrlShow);
|
||||
// }
|
||||
},
|
||||
immediate: true,
|
||||
deep: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user