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;