更新音源API (#1352)

* 更新API

---------

Co-authored-by: lyswhut <lyswhut@qq.com>
This commit is contained in:
Folltoshe
2023-04-29 15:09:17 +08:00
committed by GitHub
co-authored by lyswhut
parent 200ca1eeda
commit 908815def3
36 changed files with 1422 additions and 207 deletions
@@ -48,12 +48,12 @@ export default {
const tipSearch = debounce(async() => {
if (searchText.value === '' && prevTempSearchSource) {
tipList.value = []
music[prevTempSearchSource].tempSearch.cancelTempSearch()
music[prevTempSearchSource].tipSearch.cancelTipSearch()
return
}
const { temp_source } = await getSearchSetting()
prevTempSearchSource = temp_source
music[prevTempSearchSource].tempSearch.search(searchText.value).then(list => {
music[prevTempSearchSource].tipSearch.search(searchText.value).then(list => {
tipList.value = list
}).catch(() => {})
}, 50)