diff --git a/src/core/songlist.ts b/src/core/songlist.ts index e1ce73c..ea06a21 100644 --- a/src/core/songlist.ts +++ b/src/core/songlist.ts @@ -1,4 +1,4 @@ -import songlistState, { type TagInfo, type ListDetailInfo, type ListInfo, type ListInfoItem } from '@/store/songlist/state' +import songlistState, { type TagInfo, type ListDetailInfo, type ListInfo } from '@/store/songlist/state' import songlistActions from '@/store/songlist/action' import { deduplicationList, toNewMusicInfo } from '@/utils' import musicSdk from '@/utils/musicSdk' @@ -12,15 +12,6 @@ const cache = new Map() const LIST_LOAD_LIMIT = 30 -/** - * 设置要打开的歌单详情信息 - * @param source - * @returns - */ -export const setSelectListInfo = (info: ListInfoItem) => { - songlistActions.clearListDetail() -} - /** * 获取排序列表 * @param source diff --git a/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx b/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx index 22bd862..df19114 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx @@ -7,7 +7,6 @@ import { type Source } from '@/store/songlist/state' import { createStyle } from '@/utils/tools' import Text from '@/components/common/Text' import { useI18n } from '@/lang' -import { setSelectListInfo } from '@/core/songlist' import { navigations } from '@/navigation' import commonState from '@/store/common/state' @@ -32,7 +31,7 @@ export default forwardRef((props, ref) => { const handleOpenSonglist = (id: string) => { // console.log(id, songlistInfoRef.current.source) - setSelectListInfo({ + navigations.pushSonglistDetailScreen(commonState.componentIds.home!, { play_count: undefined, id, author: '', @@ -41,7 +40,6 @@ export default forwardRef((props, ref) => { desc: undefined, source: songlistInfoRef.current.source, }) - navigations.pushSonglistDetailScreen(commonState.componentIds.home!, id) } // const handleSourceChange: ModalProps['onSourceChange'] = (source) => {