🐛 Fixed some issues

This commit is contained in:
2025-07-02 12:10:46 +08:00
parent 25e1a98932
commit 81eb2c94ac
14 changed files with 210 additions and 149 deletions

View File

@@ -16,7 +16,7 @@ type PathManager struct {
// NewPathManager 创建新的路径管理器
func NewPathManager() *PathManager {
// 获取用户配置目录
userConfigDir, err := os.UserConfigDir()
userConfigDir, err := os.UserHomeDir()
if err != nil {
// 如果获取失败,使用当前目录
userConfigDir, _ = os.Getwd()