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 @@
-
+
@@ -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 @@