From cc6fbc69fa97adfd59ef93dec35d84cae9b2f7b3 Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Mon, 5 Sep 2022 10:07:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=20createDir=20=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Data.js b/components/Data.js index 2fd21a68..190fe67b 100644 --- a/components/Data.js +++ b/components/Data.js @@ -4,7 +4,7 @@ import fs from 'fs' const _path = process.cwd() const getRoot = (root = '') => { if (root === 'root' || root === 'yunzai') { - root = _path + root = `${_path}/` } else if (!root) { root = `${_path}/plugins/miao-plugin/` }