From 851fdb9f4c4cf683b6363606d5c60776fe4d04a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 4 May 2023 10:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/trainingAvatar/index.vue | 61 ++--------------------- 1 file changed, 5 insertions(+), 56 deletions(-) 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));