fix: 播放器收藏按钮 重复渲染

feature/artists
mackt 7 months ago
parent bb9dd4d1f6
commit d51958a95b

@ -236,7 +236,7 @@ export default function AudioPlayer({
<div className="flex items-end">
<div className="flex h-full items-end h-fit ml-45px mb-29px gap-18px">
{/* 收藏歌曲 */}
{!!audio?.id && <CollectButton id={audio.id} active={audio.haveCollect} collectType="0" color="dark" />}
{<CollectButton id={audio.id || '0'} active={audio.haveCollect} collectType="0" color="dark" />}
{/* 播放顺序 */}
{playListInfo.type !== 'fm' && <OrderButton order={playOrder} onClick={handleChangeOrder} />}
<VolumeButton value={volume} onChange={handleChangeVolumn} />

Loading…
Cancel
Save