修复使用Scheme URL搜索歌曲时,不会自动关闭播放详情页(若处于打开状态)的问题

This commit is contained in:
lyswhut
2022-04-03 00:37:38 +08:00
parent 28b7b5581d
commit 9afa965d5d
2 changed files with 3 additions and 1 deletions
@@ -1,7 +1,7 @@
import { useCommit, useAction, useRouter, markRaw } from '@renderer/utils/vueTools'
import { decodeName } from '@renderer/utils'
// import { allList, defaultList, loveList, userLists } from '@renderer/core/share/list'
import { playMusicInfo } from '@renderer/core/share/player'
import { playMusicInfo, isShowPlayerDetail, setShowPlayerDetail } from '@renderer/core/share/player'
import { dataVerify, qualityFilter, sources } from './utils'
@@ -29,6 +29,7 @@ const useSearchMusic = () => {
if (text.length > 128) text = text.substring(0, 128)
}
if (isShowPlayerDetail.value) setShowPlayerDetail(false)
const sourceList = [...sources, 'all']
source = sourceList.includes(source) ? source : null
router.replace({