mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
Fix eslint error
This commit is contained in:
parent
262b574937
commit
e5a6b2fb52
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -10,5 +10,6 @@
|
|||||||
"google-cn",
|
"google-cn",
|
||||||
"google"
|
"google"
|
||||||
],
|
],
|
||||||
"i18n-ally.sortKeys": true
|
"i18n-ally.sortKeys": true,
|
||||||
|
"typescript.tsdk": "packages/shared/eslint/node_modules/typescript/lib",
|
||||||
}
|
}
|
||||||
|
@ -87,8 +87,12 @@ export const handleImportListPart = async(listData: LX.ConfigFile.MyListInfoPart
|
|||||||
})
|
})
|
||||||
if (confirm) {
|
if (confirm) {
|
||||||
listData.name = targetList.name
|
listData.name = targetList.name
|
||||||
void overwriteList(listData)
|
void overwriteList(listData).then(() => {
|
||||||
toast(global.i18n.t('setting_backup_part_import_list_tip_success'))
|
toast(global.i18n.t('setting_backup_part_import_list_tip_success'))
|
||||||
|
}).catch((err) => {
|
||||||
|
log.error(err)
|
||||||
|
toast(global.i18n.t('setting_backup_part_import_list_tip_error'))
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
listData.id += `__${Date.now()}`
|
listData.id += `__${Date.now()}`
|
||||||
|
@ -24,7 +24,7 @@ export default memo(() => {
|
|||||||
const handleGetAppCacheSize = () => {
|
const handleGetAppCacheSize = () => {
|
||||||
void Promise.all([getAppCacheSize(), getCacheSize()]).then(([size, size2]) => {
|
void Promise.all([getAppCacheSize(), getCacheSize()]).then(([size, size2]) => {
|
||||||
const count = size + size2
|
const count = size + size2
|
||||||
setCacheSize(sizeFormate(count as number))
|
setCacheSize(sizeFormate(count))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user