mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 20:35:16 +00:00
* fix: 修改 layout 中相关 emit 和 重复声明的 theme ,采用最新的vue api * fix:修改 eslintrc 的配置文件,删除大多数无用配置 * fix: 修复 layout 切换手机样式模糊层的 bug * feature: 重构 layout , 添加暗黑模式 , 删除侧边栏颜色 * fix:细节调整,activeColor摘除。 * feature:右侧滚动模式调整 * feature:无用代码剔除 * fix: 修复暗黑模式相关细节 * fix: custome config layout * feature:样式细节调整 * fix: 增加前端样式配置文件 * feature:调整基础配置,增加表格边框 * feature:buttomInfo取消底色,a标签更改为活跃色 * feature:调整阴影颜色和配置同步 * feature:版本调整2.6.3==>2.6.4 --------- Co-authored-by: bypanghu <bypanghu@163.com>
51 lines
1.4 KiB
Go
51 lines
1.4 KiB
Go
package core
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/initialize"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/service/system"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
type server interface {
|
|
ListenAndServe() error
|
|
}
|
|
|
|
func RunWindowsServer() {
|
|
if global.GVA_CONFIG.System.UseMultipoint || global.GVA_CONFIG.System.UseRedis {
|
|
// 初始化redis服务
|
|
initialize.Redis()
|
|
}
|
|
if global.GVA_CONFIG.System.UseMongo {
|
|
err := initialize.Mongo.Initialization()
|
|
if err != nil {
|
|
zap.L().Error(fmt.Sprintf("%+v", err))
|
|
}
|
|
}
|
|
// 从db加载jwt数据
|
|
if global.GVA_DB != nil {
|
|
system.LoadAll()
|
|
}
|
|
|
|
Router := initialize.Routers()
|
|
Router.Static("/form-generator", "./resource/page")
|
|
|
|
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
|
|
s := initServer(address, Router)
|
|
|
|
global.GVA_LOG.Info("server run success on ", zap.String("address", address))
|
|
|
|
fmt.Printf(`
|
|
欢迎使用 gin-vue-admin
|
|
当前版本:v2.6.4
|
|
加群方式:微信号:shouzi_1994 QQ群:470239250
|
|
插件市场:https://plugin.gin-vue-admin.com
|
|
GVA讨论社区:https://support.qq.com/products/371961
|
|
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
|
|
默认前端文件运行地址:http://127.0.0.1:8080
|
|
如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/coffee/index.html
|
|
`, address)
|
|
global.GVA_LOG.Error(s.ListenAndServe().Error())
|
|
}
|