mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复潜在自定义源切换问题
This commit is contained in:
@@ -6,6 +6,7 @@ import apiSourceInfo from '@renderer/utils/musicSdk/api-source-info'
|
||||
|
||||
let prevId = ''
|
||||
export const setUserApi = async(apiId: string) => {
|
||||
if (prevId == apiId) return
|
||||
prevId = apiId
|
||||
if (window.lx.apiInitPromise[1]) {
|
||||
window.lx.apiInitPromise[0] = new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user