🎨 Updated

This commit is contained in:
2025-06-22 12:08:50 +08:00
parent 77287bccfa
commit 35c89e086e
7 changed files with 47 additions and 26 deletions

View File

@@ -1,8 +1,6 @@
package models
import (
"os"
"path/filepath"
"time"
)
@@ -103,19 +101,10 @@ type ConfigMetadata struct {
// NewDefaultAppConfig 创建默认应用配置
func NewDefaultAppConfig() *AppConfig {
// 获取当前工作目录
currentDir, err := os.Getwd()
if err != nil {
currentDir = "."
}
// 默认路径配置 - 使用当前目录
dataDir := filepath.Join(currentDir, "data")
return &AppConfig{
General: GeneralConfig{
AlwaysOnTop: false,
DataPath: dataDir,
DataPath: "./data",
EnableSystemTray: true,
StartAtLogin: false,
EnableGlobalHotkey: false,

View File

@@ -36,6 +36,6 @@ func NewDefaultDocument() *Document {
LastUpdated: now,
CreatedAt: now,
},
Content: "\n∞∞∞text-a\n",
Content: "∞∞∞text-a\n",
}
}

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"os"
"path/filepath"
"strings"
"text/template"
"github.com/wailsapp/wails/v3/pkg/services/log"