增加 自定义导航栏模块

This commit is contained in:
2026-04-17 03:12:28 +08:00
parent 792f547dc3
commit ec508e6a32
18 changed files with 1274 additions and 653 deletions

View File

@@ -186,11 +186,11 @@ func Init(cfgFilePath string) {
).Fatal("配置文件解析错误")
}
// 统一使用 filepath.Clean 和 filepath.Base 处理路径展示
// 日志中优先显示相对运行根目录的路径,避免泄露安装目录。
cleanPath := filepath.Clean(cfgFilePath)
log.WithFields(
log.Fields{
"file": cleanPath,
"file": utils.DisplayPath(cleanPath),
},
).Info("使用配置文件")