mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
refactor: home环境变量
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import path from 'path'
|
||||
|
||||
function getUserBasePath () {
|
||||
const userHome = process.env.USERPROFILE
|
||||
const userHome = process.env.USERPROFILE || process.env.HOME
|
||||
return path.resolve(userHome, './.certd')
|
||||
}
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user