fix: 修复了图床无法正确清理过期数据的问题
This commit is contained in:
1 parent
fda826a272
commit
4fecf18da7
1 file changed
+1
-1
@@ -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)) {
|
||||||
// 删除文件
|
// 删除文件
|
||||||
|
|||||||
Reference in new issue
Block a user