更新软件默认使用的字体

This commit is contained in:
lyswhut
2024-11-26 18:03:52 +08:00
parent 7ebfd43f65
commit 4e1510c840
16 changed files with 140 additions and 23 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export const getOtherSource = async(musicInfo: LX.Music.MusicInfo | LX.Download.
reject(new Error('find music timeout'))
}, 15_000)
musicSdk.findMusic(searchMusicInfo).then((otherSource) => {
if (otherSourceCache.size > 100) otherSourceCache.clear()
if (otherSourceCache.size > 10) otherSourceCache.clear()
const source = otherSource.map(toNewMusicInfo) as LX.Music.MusicInfoOnline[]
otherSourceCache.set(musicInfo, source)
resolve(source)
@@ -20,6 +20,7 @@ export default () => {
watch(() => appSetting['common.langId'], (id) => {
if (!id) return
setLanguage(id)
window.setLang(id)
})
watch(() => appSetting['common.apiSource'], apiSource => {