fix createDir 的错误

This commit is contained in:
yoimiya-kokomi 2022-09-05 10:07:36 +08:00
parent 5b3a47aed2
commit cc6fbc69fa

View File

@ -4,7 +4,7 @@ import fs from 'fs'
const _path = process.cwd() const _path = process.cwd()
const getRoot = (root = '') => { const getRoot = (root = '') => {
if (root === 'root' || root === 'yunzai') { if (root === 'root' || root === 'yunzai') {
root = _path root = `${_path}/`
} else if (!root) { } else if (!root) {
root = `${_path}/plugins/miao-plugin/` root = `${_path}/plugins/miao-plugin/`
} }