From f3da6748d10e8e8303c63994567df2d3a7878f72 Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Thu, 11 Jun 2020 23:13:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E5=BC=80=E5=8F=91=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=8F=92=E4=BB=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/server.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server/core/server.go b/server/core/server.go index 35adb3db..be85c784 100644 --- a/server/core/server.go +++ b/server/core/server.go @@ -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)