|
|
|
@ -17,12 +17,13 @@ interface Prop {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function PlayerCard({ show, className }: Prop) {
|
|
|
|
|
const { audioId, playList, playState, setPlayList, setPlayQueue } = useAudioStore(
|
|
|
|
|
const { audioId, playList, playQueue, playState, setPlayList, setPlayQueue } = useAudioStore(
|
|
|
|
|
useShallow((state) => {
|
|
|
|
|
return {
|
|
|
|
|
playState: state.playState,
|
|
|
|
|
audioId: state.audioId,
|
|
|
|
|
playList: state.playList,
|
|
|
|
|
playQueue: state.playQueue,
|
|
|
|
|
setPlayList: state.setPlayList,
|
|
|
|
|
setPlayQueue: state.setPlayQueue,
|
|
|
|
|
};
|
|
|
|
@ -123,7 +124,7 @@ export default function PlayerCard({ show, className }: Prop) {
|
|
|
|
|
>
|
|
|
|
|
<SongCardList
|
|
|
|
|
className="w-[712px] mt-11px"
|
|
|
|
|
songList={playList}
|
|
|
|
|
songList={playQueue}
|
|
|
|
|
listInfo={{ type: 'playerCard', id: null }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|