diff --git a/src/views/system/stationAvatar/index.vue b/src/views/system/stationAvatar/index.vue index eb94638..cae7b0c 100644 --- a/src/views/system/stationAvatar/index.vue +++ b/src/views/system/stationAvatar/index.vue @@ -247,13 +247,14 @@ export default { }, // 上传预处理 beforeUpload(file) { + console.log(file) if (this.types == "posterVideoUrl" || this.types == "itemDirectoryUrl") { const reader = new FileReader(); this.previews.data = file; this.videoForm.showVideoPath = URL.createObjectURL(file); reader.readAsDataURL(file); reader.onload = () => { - // this.options.img = reader.result; + }; } else { if (file.type.indexOf("image/") == -1) { @@ -266,7 +267,7 @@ export default { this.previews.url = URL.createObjectURL(file); reader.readAsDataURL(file); reader.onload = () => { - // this.options.img = reader.result; + this.options.img = reader.result; }; } }