From 4e365d58027340f697fad94e819b9f6daa3db0d7 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 14 Apr 2023 21:55:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/preview/AudioPreview.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/preview/AudioPreview.vue b/src/components/preview/AudioPreview.vue index 99f5d01..e8a9d11 100644 --- a/src/components/preview/AudioPreview.vue +++ b/src/components/preview/AudioPreview.vue @@ -69,9 +69,9 @@ export default { let musicOperation = { id: newFile.id, url: url, - name: music.songName ? music.songName : fileName, - artist: music.songName ? music.singer : fileName, - cover: music.songName ? audioCoverUrl + newFile.id : '', + name: music ? music.songName || fileName : fileName, + artist: music ? music.singer || fileName : fileName, + cover: music ? audioCoverUrl + newFile.id : '', type: newFile.contentType } let musicIndex = this.audios.findIndex(item => item.id === newFile.id)