Skip to content

Commit

Permalink
代码小调整
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Jan 15, 2025
1 parent f8cce20 commit d2f3f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function _getConfigPath () {
const dir = getDefaultConfigBasePath()
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir)
return path.join(dir, '/config.json')
} else {
// 兼容1.7.3及以下版本的配置文件处理逻辑
const newFilePath = path.join(dir, '/config.json')
Expand All @@ -39,7 +40,6 @@ function _getConfigPath () {
}
return newFilePath
}
return path.join(dir, '/config.json')
}

let timer
Expand Down

0 comments on commit d2f3f8f

Please sign in to comment.