From 64c27f0ee61783ef9757f972d8faf574867d45fc Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Fri, 23 Aug 2024 22:08:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=89=80=E6=9C=89?= =?UTF-8?q?=E8=B5=84=E6=BA=90;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/manage/assets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/manage/assets.js b/apps/manage/assets.js index 46e4501..7d31364 100644 --- a/apps/manage/assets.js +++ b/apps/manage/assets.js @@ -106,7 +106,9 @@ export async function deleteAll() { false, { at: true, recallMsg: 100 } ); - for (const dir of LocalURI) { + // 将 localURI 值迭代删除 + for (const dir of Object.values(LocalURI)) { + logger.debug(`删除文件夹:${dir}`); if (fs.existsSync(dir)) { fs.rmSync(dir, { recursive: true }); }