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

pull/930/merge
lyswhut 2022-04-03 00:37:38 +08:00
parent 28b7b5581d
commit 9afa965d5d
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@
- 修复启用搜索历史但不启用热门搜索时,搜索历史不显示的问题
- 修复窗口尺寸设置对应的字体大小在启动后不生效的问题
- 修复wy源搜索某些歌曲时第一页之后的歌曲无法加载的问题
- 修复使用Scheme URL搜索歌曲时不会自动关闭播放详情页若处于打开状态的问题
### 变更

View File

@ -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({