From 30c7034d63afaeaaff275bb0896a306c141fff4f Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 19 Apr 2020 12:04:17 +0800 Subject: [PATCH] =?UTF-8?q?*=E4=BF=AE=E6=94=B9iconFile=20src=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=20*=E4=BF=AE=E6=94=B9audioPreview=20*=E4=BF=AE?= =?UTF-8?q?=E6=94=B9showFile=20*=E4=BF=AE=E6=94=B9SimTextPreview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Icon/IconFile.vue | 12 ++++++++---- src/components/ShowFile/ShowFile.vue | 10 +++++----- src/components/preview/AudioPreview.vue | 7 +++---- src/components/preview/SimTextPreview.vue | 4 ++-- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/components/Icon/IconFile.vue b/src/components/Icon/IconFile.vue index a434855..66c637e 100644 --- a/src/components/Icon/IconFile.vue +++ b/src/components/Icon/IconFile.vue @@ -17,13 +17,13 @@
-
- +
+
- +
@@ -35,7 +35,7 @@
- + @@ -53,6 +53,10 @@ type: String, default: '' }, + audioCoverUrl: { + type: String, + default: '' + }, grid: { type: Boolean, default: false diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 9ce9c7e..3bbce6f 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -194,7 +194,7 @@ width="50" > @@ -327,7 +327,7 @@ @contextmenu.prevent="rowContextmenu(item)" > -
+
{{item.name}} @@ -356,7 +356,7 @@ :title="rowContextData.name" :visible.sync="drawer">
- +
@@ -516,7 +516,7 @@ data() { return { imageUrl: process.env.VUE_APP_BASE_API + '/view/thumbnail?jmal-token=' + this.$store.state.user.token + '&id=', - // imageUrl: 'http://localhost:8088/view?username=' + this.$store.state.user.name + '&id=', + audioCoverUrl: process.env.VUE_APP_BASE_API + '/view/cover?jmal-token=' + this.$store.state.user.token + '&id=', fileMenuActive: '', path: this.$route.query.path, showNewFolder: false, @@ -2230,7 +2230,7 @@ // 音频文件 // this.audioPreviewVisible = true // this.audioPreviewRow = row - Bus.$emit('onAddAudio',row) + Bus.$emit('onAddAudio',row, this.audioCoverUrl) return } if(row.contentType.includes('text')){ diff --git a/src/components/preview/AudioPreview.vue b/src/components/preview/AudioPreview.vue index 1021b8f..944b7f3 100644 --- a/src/components/preview/AudioPreview.vue +++ b/src/components/preview/AudioPreview.vue @@ -24,7 +24,6 @@