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: {