修复潜在自定义源切换问题
parent
97d3d3c616
commit
4ac6768b7a
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue