From a0b9553158c9e981a34e46ef777279f9925f5157 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 6 Nov 2021 14:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=92=AD=E6=94=BE=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=84=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/core/Player.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/core/Player.vue b/src/renderer/components/core/Player.vue index c6160b88..dc45fd30 100644 --- a/src/renderer/components/core/Player.vue +++ b/src/renderer/components/core/Player.vue @@ -64,7 +64,7 @@ div(:class="$style.player") //- transition(enter-active-class="animated lightSpeedIn" transition(enter-active-class="animated lightSpeedIn" leave-active-class="animated slideOutDown") - core-player-detail(v-if="isShowPlayerDetail" :visible.sync="isShowPlayerDetail" :musicInfo="currentMusicInfo" + core-player-detail(v-show="isShowPlayerDetail" :visible.sync="isShowPlayerDetail" :musicInfo="currentMusicInfo" :lyric="lyric" :list="list" :listId="listId" :playInfo="{ nowPlayTimeStr, maxPlayTimeStr, progress, nowPlayTime, status }" :isPlay="isPlay" @action="handlePlayDetailAction" @@ -764,7 +764,7 @@ export default { this.setProgressWidth() }, handleToMusicLocation() { - if (!this.listId || this.listId == '__temp__' || this.listId == 'download') return + if (!this.listId || this.listId == '__temp__' || this.listId == 'download' || !this.currentMusicInfo.songmid) return if (this.playIndex == -1) return this.$router.push({ path: 'list', @@ -775,7 +775,7 @@ export default { }) }, showPlayerDetail() { - if (!this.currentMusicInfo) return + if (!this.currentMusicInfo.songmid) return this.isShowPlayerDetail = true }, handleTransitionEnd(e) {