diff --git a/lib/pages/about/index.dart b/lib/pages/about/index.dart index 2c0ab5b3..af1a4d6b 100644 --- a/lib/pages/about/index.dart +++ b/lib/pages/about/index.dart @@ -164,11 +164,8 @@ class _AboutPageState extends State { ), ListTile( onTap: () async { - var cleanStatus = await CacheManage().clearCacheAll(); - if (cleanStatus) { - getCacheSize(); - SmartDialog.showToast('清除成功'); - } + await CacheManage().clearCacheAll(); + getCacheSize(); }, title: const Text('清除缓存'), subtitle: Text('图片及网络缓存 $cacheSize', style: subTitleStyle), diff --git a/lib/utils/cache_manage.dart b/lib/utils/cache_manage.dart index e250ab70..2c7998a3 100644 --- a/lib/utils/cache_manage.dart +++ b/lib/utils/cache_manage.dart @@ -101,7 +101,7 @@ class CacheManage { await clearLibraryCache(); Timer(const Duration(milliseconds: 500), () { SmartDialog.dismiss().then((res) { - SmartDialog.showToast('清除完成'); + SmartDialog.showToast('清除成功'); }); }); } catch (err) {