feat:修复了亿点点bug

This commit is contained in:
Fox_block
2026-01-14 19:27:51 +08:00
parent ae08ec45b0
commit f27e2f21bb
33 changed files with 3161 additions and 935 deletions
+17
View File
@@ -0,0 +1,17 @@
import fs from 'fs'
import path from 'path'
const root = process.cwd()
const targets = ['db.sqlite']
for (const name of targets) {
const filePath = path.join(root, name)
try {
if (fs.existsSync(filePath)) {
fs.rmSync(filePath, { force: true })
console.log(`[clean-db] removed ${filePath}`)
}
} catch (e) {
console.error(`[clean-db] failed to remove ${filePath}:`, e?.message || e)
}
}