fix: 修复了图床无法正确清理过期数据的问题

This commit is contained in:
539943419 committed 2025-01-22 11:21:53 +08:00
1 parent fda826a272
commit 4fecf18da7
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ const cleanExpiredFiles_imgBed = async () => {
for (const file of expiredFiles) { for (const file of expiredFiles) {
const hash = file.hash; const hash = file.hash;
const filePath = useRuntimeConfig().public.userDataPath + `/imgBed/${hash}`; const filePath = `./userData/imgBed/${hash}`;
// 检查文件是否存在 // 检查文件是否存在
if (fs.existsSync(filePath)) { if (fs.existsSync(filePath)) {
// 删除文件 // 删除文件