From f34509a72d3f7027fe6d9a7ad3fc171d51997f3c Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Mon, 11 Apr 2022 12:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4SysCfg=20json=E7=9A=84?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Cfg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Cfg.js b/components/Cfg.js index e43e06b2..35ec7192 100644 --- a/components/Cfg.js +++ b/components/Cfg.js @@ -4,14 +4,14 @@ import lodash from "lodash"; const _path = process.cwd(); const _cfgPath = `${_path}/plugins/miao-plugin/components/`; let cfg = {}; - +console.log(cfg); if (!fs.existsSync(_cfgPath)) { fs.mkdirSync(_cfgPath); } try { if (fs.existsSync(_cfgPath + "cfg.json")) { - cfg = JSON.parse(fs.readFileSync(_cfgPath + "miao-plugin.json", "utf8")) || {}; + cfg = JSON.parse(fs.readFileSync(_cfgPath + "cfg.json", "utf8")) || {}; } } catch (e) { // do nth