diff --git a/components/Player.js b/components/Player.js index 8c252615..3c741f94 100644 --- a/components/Player.js +++ b/components/Player.js @@ -19,7 +19,10 @@ const Player = () => { const musicPlayerEnable = siteConfig('MUSIC_PLAYER') const musicPlayerCDN = siteConfig('MUSIC_PLAYER_CDN_URL') const musicMetingEnable = siteConfig('MUSIC_PLAYER_METING') - const musicMetingCDNUrl = siteConfig('MUSIC_PLAYER_METING_CDN_URL', 'https://cdnjs.cloudflare.com/ajax/libs/meting/2.0.1/Meting.min.js') + const musicMetingCDNUrl = siteConfig( + 'MUSIC_PLAYER_METING_CDN_URL', + 'https://cdnjs.cloudflare.com/ajax/libs/meting/2.0.1/Meting.min.js' + ) const initMusicPlayer = async () => { if (!musicPlayerEnable) { @@ -36,14 +39,16 @@ const Player = () => { } if (!meting && window.APlayer) { - setPlayer(new window.APlayer({ - container: ref.current, - fixed: true, - lrcType: lrcType, - autoplay: autoPlay, - order: order, - audio: audio - })) + setPlayer( + new window.APlayer({ + container: ref.current, + fixed: true, + lrcType: lrcType, + autoplay: autoPlay, + order: order, + audio: audio + }) + ) } } @@ -57,23 +62,28 @@ const Player = () => { return (
- {meting - ? - :
- } + {meting ? ( + + ) : ( +
+ )}
) }