提交 f3da6748 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

屏蔽开发中的插件功能

上级 aaddedf5
......@@ -4,7 +4,6 @@ import (
"fmt"
"gin-vue-admin/global"
"gin-vue-admin/initialize"
"github.com/piexlmax/gvaplug"
"net/http"
"time"
)
......@@ -18,10 +17,10 @@ func RunWindowsServer() {
Router.Static("/form-generator", "./resource/page")
// 插件安装 暂时只是后台功能 添加model 添加路由 添加对数据库的操作 详细插件测试模板可看https://github.com/piexlmax/gvaplug 此处不建议投入生产
err := initialize.InstallPlug(global.GVA_DB, Router, gvaplug.GvaPlug{})
if err != nil {
panic(fmt.Sprintf("插件安装失败: %v", err))
}
//err := initialize.InstallPlug(global.GVA_DB, Router, gvaplug.GvaPlug{})
//if err != nil {
// panic(fmt.Sprintf("插件安装失败: %v", err))
//}
// end 插件描述
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册