修复无法打开外部歌单的问题(#385)

This commit is contained in:
lyswhut 2023-12-18 14:14:45 +08:00
parent 1c8c5a53e8
commit 442c7c6a23
2 changed files with 2 additions and 13 deletions

View File

@ -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<string, CacheValue>()
const LIST_LOAD_LIMIT = 30
/**
*
* @param source
* @returns
*/
export const setSelectListInfo = (info: ListInfoItem) => {
songlistActions.clearListDetail()
}
/**
*
* @param source

View File

@ -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<OpenListType, {}>((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<OpenListType, {}>((props, ref) => {
desc: undefined,
source: songlistInfoRef.current.source,
})
navigations.pushSonglistDetailScreen(commonState.componentIds.home!, id)
}
// const handleSourceChange: ModalProps['onSourceChange'] = (source) => {