From 74495fb9e19b7e42ac720e8bb7a39200ea342b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Thu, 28 Dec 2023 10:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }