迁移搜索、播放启动参数支持

This commit is contained in:
lyswhut
2022-11-04 15:56:34 +08:00
parent 303d712860
commit 9bec54c454
5 changed files with 94 additions and 93 deletions
@@ -37,13 +37,15 @@ const useSearchMusic = () => {
if (isShowPlayerDetail.value) setShowPlayerDetail(false)
const sourceList = [...sources, 'all']
source = sourceList.includes(source) ? source : null
router.replace({
path: '/search',
query: {
text,
source,
},
})
setTimeout(() => {
router.replace({
path: '/search',
query: {
text,
source,
},
})
}, 500)
focusWindow()
}
}