From 2f0cc759520dc75d6ec41d07a5381aca797adc08 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:14:33 +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 | 17 ++++++++++++----- src/views/system/trainingItem/index.vue | 3 +-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/system/trainingAvatar/index.vue b/src/views/system/trainingAvatar/index.vue index 70cb032..2f45da2 100644 --- a/src/views/system/trainingAvatar/index.vue +++ b/src/views/system/trainingAvatar/index.vue @@ -123,7 +123,11 @@ export default { this.uploadbtn = true; this.filedata.type = this.type; this.items = this.item; - if (this.tovideo) { + if (this.tovideo == null) { + this.video.VideoPath = null; + } else if (this.tovideo == "") { + this.video.VideoPath = null; + } else { this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + this.tovideo; this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; @@ -134,10 +138,13 @@ export default { tovideo: { handler(newimg, oldimg) { this.uploadbtn = true; - 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; + if (newimg == null) { + this.video.VideoPath = null; + } else if (newimg == "") { + this.video.VideoPath = null; + } else { + this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + newimg; + this.video.VideoPath = process.env.VUE_APP_BASE_API + newimg; } } }, diff --git a/src/views/system/trainingItem/index.vue b/src/views/system/trainingItem/index.vue index 63561f2..e55671c 100644 --- a/src/views/system/trainingItem/index.vue +++ b/src/views/system/trainingItem/index.vue @@ -997,7 +997,6 @@ export default { } this.form.trainingItemPrice = checkPlan; }, - //新增视频列表 addPictureUrl() { this.idd++; @@ -1035,8 +1034,8 @@ export default { ); } } + console.log(this.form.trainingItemDirectoryList); }, - // 章节视频 itemDirectoryUrl(item) { let items = JSON.parse(item);