- - {{ item.name }} - {{ index < artistList.length - 1 ? ' / ' : '' }} - + + + {{ item.name }} + + {{ index < artistList.length - 1 ? ' / ' : '' }} +
diff --git a/src/renderer/components/player/PlayBar.vue b/src/renderer/components/player/PlayBar.vue index c787e1f32..c3fde019b 100644 --- a/src/renderer/components/player/PlayBar.vue +++ b/src/renderer/components/player/PlayBar.vue @@ -71,14 +71,15 @@ zIndex: 99999 }" > - - {{ artists.name }}{{ artistsindex < artistList.length - 1 ? ' / ' : '' }} - + + + {{ artists.name }} + + {{ artistsindex < artistList.length - 1 ? ' / ' : '' }} + diff --git a/src/renderer/router/other.ts b/src/renderer/router/other.ts index 326cb0e8c..92e133c31 100644 --- a/src/renderer/router/other.ts +++ b/src/renderer/router/other.ts @@ -53,7 +53,8 @@ const otherRouter = [ showInMenu: false, back: true }, - component: () => import('@/views/artist/detail.vue') + component: () => import('@/views/artist/detail.vue'), + props: (route) => ({ key: route.params.id }) }, { path: '/bilibili/:bvid', diff --git a/src/renderer/store/modules/player.ts b/src/renderer/store/modules/player.ts index efa2c8c02..b68f84149 100644 --- a/src/renderer/store/modules/player.ts +++ b/src/renderer/store/modules/player.ts @@ -889,11 +889,7 @@ export const usePlayerStore = defineStore('player', () => { } // 如果是当前正在播放的音乐,则切换播放/暂停状态 - if ( - playMusic.value.id === song.id && - playMusic.value.playMusicUrl === song.playMusicUrl && - !song.isFirstPlay - ) { + if (playMusic.value.id === song.id && playMusic.value.playMusicUrl === song.playMusicUrl) { if (play.value) { setPlayMusic(false); audioService.getCurrentSound()?.pause();