错误修复

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