Fix eslint error

This commit is contained in:
lyswhut 2024-12-19 00:15:20 +08:00
parent 262b574937
commit e5a6b2fb52
3 changed files with 9 additions and 4 deletions

View File

@ -10,5 +10,6 @@
"google-cn",
"google"
],
"i18n-ally.sortKeys": true
"i18n-ally.sortKeys": true,
"typescript.tsdk": "packages/shared/eslint/node_modules/typescript/lib",
}

View File

@ -87,8 +87,12 @@ export const handleImportListPart = async(listData: LX.ConfigFile.MyListInfoPart
})
if (confirm) {
listData.name = targetList.name
void overwriteList(listData)
toast(global.i18n.t('setting_backup_part_import_list_tip_success'))
void overwriteList(listData).then(() => {
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
}
listData.id += `__${Date.now()}`

View File

@ -24,7 +24,7 @@ export default memo(() => {
const handleGetAppCacheSize = () => {
void Promise.all([getAppCacheSize(), getCacheSize()]).then(([size, size2]) => {
const count = size + size2
setCacheSize(sizeFormate(count as number))
setCacheSize(sizeFormate(count))
})
}