diff --git a/src/views/system/trainingAvatar/index.vue b/src/views/system/trainingAvatar/index.vue index 47b6ee5..03f1ca1 100644 --- a/src/views/system/trainingAvatar/index.vue +++ b/src/views/system/trainingAvatar/index.vue @@ -50,7 +50,7 @@ :show-file-list="false" class="upload-demo" ref="upload" - action="http://192.168.16.30:8080/system/trainingItem/uploadVideoUrl" + :action="uploadurl" :on-preview="handlePreview" :auto-upload="false" :on-change="loadJsonFromFile" @@ -113,11 +113,13 @@ export default { }, video: { VideoPath: null //回显的变量 - } + }, + uploadurl: null }; }, created() { - console.log(this.tovideo); + this.uploadurl = + process.env.VUE_APP_BASE_API + "/system/trainingItem/uploadVideoUrl"; this.uploadbtn = true; this.filedata.type = this.type; this.items = this.item;