From b93bc6c52b23ed766e0a1ecb348fbd455e0d0df0 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 15:45:08 +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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/system/trainingAvatar/index.vue b/src/views/system/trainingAvatar/index.vue index c7cbf4e..9a35b89 100644 --- a/src/views/system/trainingAvatar/index.vue +++ b/src/views/system/trainingAvatar/index.vue @@ -4,6 +4,7 @@ @@ -123,14 +124,17 @@ export default { this.filedata.type = this.type; this.items = this.item; this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + this.tovideo; - this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; + if (this.tovideo) { + this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; + } this.title = "上传视频"; }, watch: { tovideo: { handler(newimg, oldimg) { this.uploadbtn = true; - this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + this.tovideo; + this.videoForm.showVideoPath = + process.env.VUE_APP_BASE_API + this.tovideo; this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; } }, @@ -223,7 +227,8 @@ export default { this.uploadbtn = false; uploadVideoUrl(formData).then(response => { if (response.code == 200) { - this.video.VideoPath = process.env.VUE_APP_BASE_API + response.imgUrl; + this.video.VideoPath = + process.env.VUE_APP_BASE_API + response.imgUrl; this.items.itemDirectoryUrl = response.imgUrl; this.$emit("item", JSON.stringify(this.items)); this.openimg = false;