🎨 Updated

This commit is contained in:
landaiqing committed 2025-06-22 12:08:50 +08:00
1 parent 77287bccfa
commit 35c89e086e
7 files changed
+47 -26

No files matched your search

+1 -12
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,
+1 -1
View File
@@ -36,6 +36,6 @@ func NewDefaultDocument() *Document {
LastUpdated: now,
CreatedAt: now,
},
Content: "\n∞∞∞text-a\n",
Content: "∞∞∞text-a\n",
}
}
-1
View File
@@ -6,7 +6,6 @@ import (
"fmt"
"os"
"path/filepath"
"strings"
"text/template"
"github.com/wailsapp/wails/v3/pkg/services/log"