From 442c7c6a23c8fd6d4162f457401ed51defcf286e Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 18 Dec 2023 14:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=89=93?= =?UTF-8?q?=E5=BC=80=E5=A4=96=E9=83=A8=E6=AD=8C=E5=8D=95=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=88#385=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/songlist.ts | 11 +---------- .../Home/Views/SongList/HeaderBar/OpenList/index.tsx | 4 +--- 2 files changed, 2 insertions(+), 13 deletions(-) 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) => {