错误修复

This commit is contained in:
🌌 2023-12-28 10:00:50 +08:00
parent 179f65c306
commit 74495fb9e1

View File

@ -49,7 +49,7 @@ let Data = {
try {
return JSON.parse(fs.readFileSync(`${root}/${file}`, 'utf8'))
} catch (e) {
console.err(`JSON数据错误: ${root}/${file}`)
console.error(`JSON数据错误: ${root}/${file}`)
console.log(e)
}
}
@ -136,7 +136,7 @@ let Data = {
let data = await import(`file://${root}/${file}?t=${new Date() * 1}`)
return data || {}
} catch (e) {
console.err(`import module错误: ${root}/${file}`)
console.error(`import module错误: ${root}/${file}`)
console.log(e)
}
}