代码小调整

pull/437/head
王良 2025-01-15 16:20:09 +08:00
parent f8cce202f5
commit d2f3f8fb45
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,7 @@ function _getConfigPath () {
const dir = getDefaultConfigBasePath() const dir = getDefaultConfigBasePath()
if (!fs.existsSync(dir)) { if (!fs.existsSync(dir)) {
fs.mkdirSync(dir) fs.mkdirSync(dir)
return path.join(dir, '/config.json')
} else { } else {
// 兼容1.7.3及以下版本的配置文件处理逻辑 // 兼容1.7.3及以下版本的配置文件处理逻辑
const newFilePath = path.join(dir, '/config.json') const newFilePath = path.join(dir, '/config.json')
@ -39,7 +40,6 @@ function _getConfigPath () {
} }
return newFilePath return newFilePath
} }
return path.join(dir, '/config.json')
} }
let timer let timer