diff --git a/src/views/system/trainingAvatar/index.vue b/src/views/system/trainingAvatar/index.vue index 3f22c7c..90b0f0b 100644 --- a/src/views/system/trainingAvatar/index.vue +++ b/src/views/system/trainingAvatar/index.vue @@ -29,6 +29,7 @@
@@ -174,13 +120,16 @@ export default { this.uploadbtn = true; this.filedata.type = this.type; this.items = this.item; + this.videoForm.showVideoPath = baseurl + this.tovideo; this.video.VideoPath = baseurl + this.tovideo; this.title = "上传视频"; }, watch: { tovideo: { handler(newimg, oldimg) { + console.log(newimg, oldimg); this.uploadbtn = true; + this.videoForm.showVideoPath = baseurl + this.tovideo; this.video.VideoPath = baseurl + this.tovideo; } }, @@ -208,6 +157,7 @@ export default { } }, loadJsonFromFile(file, fileList) { + console.log(file); const reader = new FileReader(); this.previews.data = file.raw; this.videoForm.showVideoPath = URL.createObjectURL(file.raw); @@ -255,7 +205,6 @@ export default { }; }, handleAvatarSuccess(res, file) { - console.log(res); this.video.VideoPath = baseurl + res.imgUrl; this.items.itemDirectoryUrl = res.imgUrl; this.$emit("item", JSON.stringify(this.items));