diff --git a/components/Data.js b/components/Data.js index 5e0c8a25..849e4ae7 100644 --- a/components/Data.js +++ b/components/Data.js @@ -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) } }