fix: 修复配置文件路径问题

This commit is contained in:
Mmx
2021-09-20 09:20:03 +08:00
parent 12e9b00324
commit bb45aa9971
5 changed files with 6 additions and 23 deletions

View File

@@ -3,6 +3,7 @@ package global
import (
"autoLogin/models"
"github.com/Mmx233/config"
"github.com/Mmx233/tool"
"log"
"os"
)
@@ -10,6 +11,8 @@ import (
var Config models.Config
func init() {
tool.File.Options.ForceRoot = true
//配置文件初始化
if e := config.Load(config.Options{
Config: &Config,