fix: 增强Aplayer判断

This commit is contained in:
ykxkykx
2023-01-03 18:19:37 +08:00
parent 1a0047e244
commit f84b86a62f

View File

@@ -12,7 +12,7 @@ const Player = () => {
const meting = JSON.parse(BLOG.MUSIC_PLAYER_METING)
React.useEffect(() => {
if (!meting) {
if (!meting && window.APlayer) {
setPlayer(new window.APlayer({
container: ref.current,
fixed: true,