fix: 收藏按钮必须有 audio.id

feature/artists
mackt 7 months ago
parent 9e737bcb4b
commit b70c86f092

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

Loading…
Cancel
Save