From 7aecde77d9a92293467822c8a314446817236a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 10 Oct 2023 17:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/stationAvatar/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }; } }