优化
This commit is contained in:
parent
89625188f1
commit
5ee7c5a319
@ -10,9 +10,9 @@ import useHandleEnvParams from './useHandleEnvParams'
|
|||||||
import useEventListener from './useEventListener'
|
import useEventListener from './useEventListener'
|
||||||
import useDeeplink from './useDeeplink'
|
import useDeeplink from './useDeeplink'
|
||||||
import usePlayer from './usePlayer'
|
import usePlayer from './usePlayer'
|
||||||
import handleListAutoUpdate from './listAutoUpdate'
|
|
||||||
import { useRouter } from '@common/utils/vueRouter'
|
|
||||||
import useSettingSync from './useSettingSync'
|
import useSettingSync from './useSettingSync'
|
||||||
|
import { useRouter } from '@common/utils/vueRouter'
|
||||||
|
import handleListAutoUpdate from './listAutoUpdate'
|
||||||
|
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
@ -64,10 +64,10 @@ export default () => {
|
|||||||
handleEnvParams(envParams) // 处理传入的启动参数
|
handleEnvParams(envParams) // 处理传入的启动参数
|
||||||
void initDeeplink(envParams)
|
void initDeeplink(envParams)
|
||||||
void initSyncService()
|
void initSyncService()
|
||||||
|
sendInited()
|
||||||
|
|
||||||
handleListAutoUpdate()
|
handleListAutoUpdate()
|
||||||
if (window.lx.isProd) checkUpdate()
|
if (window.lx.isProd) checkUpdate()
|
||||||
|
|
||||||
sendInited()
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,8 +17,9 @@ export default () => {
|
|||||||
const waitUpdateLists = Object.entries(listUpdateInfo)
|
const waitUpdateLists = Object.entries(listUpdateInfo)
|
||||||
.map(([id, info]) => info.isAutoUpdate && userLists.find(l => l.id == id))
|
.map(([id, info]) => info.isAutoUpdate && userLists.find(l => l.id == id))
|
||||||
.filter(_ => _) as LX.List.UserListInfo[]
|
.filter(_ => _) as LX.List.UserListInfo[]
|
||||||
for (let i = 2; i > 0; i--) {
|
// for (let i = 2; i > 0; i--) {
|
||||||
|
// void handleSyncSourceList(waitUpdateLists)
|
||||||
void handleSyncSourceList(waitUpdateLists)
|
void handleSyncSourceList(waitUpdateLists)
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user