fix: clearLibraryCache改为static

This commit is contained in:
orz12
2024-04-04 10:57:52 +08:00
parent 7d358bea1a
commit fbce44dfad

View File

@@ -134,7 +134,7 @@ class CacheManage {
}
// 清除 Library/Caches 目录及文件缓存
Future clearLibraryCache() async {
static Future clearLibraryCache() async {
var appDocDir = await getTemporaryDirectory();
if (appDocDir.existsSync()) {
await appDocDir.delete(recursive: true);