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-cn",
"google" "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) { 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()}`

View File

@ -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))
}) })
} }