From 8ca4a52e6a508b0c1dd47032de67a477b3e1d8bb 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 16:04:02 +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, 7 insertions(+), 4 deletions(-) diff --git a/src/views/system/trainingAvatar/index.vue b/src/views/system/trainingAvatar/index.vue index 9a35b89..70cb032 100644 --- a/src/views/system/trainingAvatar/index.vue +++ b/src/views/system/trainingAvatar/index.vue @@ -123,8 +123,9 @@ export default { this.uploadbtn = true; this.filedata.type = this.type; this.items = this.item; - this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + this.tovideo; if (this.tovideo) { + this.videoForm.showVideoPath = + process.env.VUE_APP_BASE_API + this.tovideo; this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; } this.title = "上传视频"; @@ -133,9 +134,11 @@ export default { tovideo: { handler(newimg, oldimg) { this.uploadbtn = true; - 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.videoForm.showVideoPath = + process.env.VUE_APP_BASE_API + this.tovideo; + this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; + } } }, item: {