Browse Source

增加版本号功能

pixel 4 years ago
parent
commit
a8fffc8f34
3 changed files with 13 additions and 2 deletions
  1. 3 1
      server/core/server.go
  2. 2 0
      server/go.mod
  3. 8 1
      web/src/main.js

+ 3 - 1
server/core/server.go

@@ -27,7 +27,9 @@ func RunWindowsServer() {
 	time.Sleep(10 * time.Microsecond)
 	time.Sleep(10 * time.Microsecond)
 	global.GVA_LOG.Info("server run success on ", zap.String("address", address))
 	global.GVA_LOG.Info("server run success on ", zap.String("address", address))
 
 
-	fmt.Printf(`欢迎使用 Gin-Vue-Admin
+	fmt.Printf(`
+	欢迎使用 Gin-Vue-Admin
+	当前版本:V2.3.2
 	默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
 	默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
 	默认前端文件运行地址:http://127.0.0.1:8080
 	默认前端文件运行地址:http://127.0.0.1:8080
 `, address)
 `, address)

+ 2 - 0
server/go.mod

@@ -3,6 +3,7 @@ module gin-vue-admin
 go 1.12
 go 1.12
 
 
 require (
 require (
+	github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
 	github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
 	github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
 	github.com/casbin/casbin v1.9.1
 	github.com/casbin/casbin v1.9.1
 	github.com/casbin/casbin/v2 v2.11.0
 	github.com/casbin/casbin/v2 v2.11.0
@@ -12,6 +13,7 @@ require (
 	github.com/fsnotify/fsnotify v1.4.9
 	github.com/fsnotify/fsnotify v1.4.9
 	github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6
 	github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6
 	github.com/gin-gonic/gin v1.6.3
 	github.com/gin-gonic/gin v1.6.3
+	github.com/go-ole/go-ole v1.2.4 // indirect
 	github.com/go-openapi/spec v0.19.7 // indirect
 	github.com/go-openapi/spec v0.19.7 // indirect
 	github.com/go-openapi/swag v0.19.8 // indirect
 	github.com/go-openapi/swag v0.19.8 // indirect
 	github.com/go-playground/validator/v10 v10.3.0 // indirect
 	github.com/go-playground/validator/v10 v10.3.0 // indirect

+ 8 - 1
web/src/main.js

@@ -47,7 +47,7 @@ Vue.use(APlayer, {
 });
 });
 
 
 
 
-import {auth} from '@/directive/auth'
+import { auth } from '@/directive/auth'
 // 按钮权限指令
 // 按钮权限指令
 auth(Vue)
 auth(Vue)
 
 
@@ -63,3 +63,10 @@ new Vue({
 //引入echarts
 //引入echarts
 import echarts from 'echarts'
 import echarts from 'echarts'
 Vue.prototype.$echarts = echarts;
 Vue.prototype.$echarts = echarts;
+
+console.log(`
+       欢迎使用 Gin-Vue-Admin
+       当前版本:V2.3.2
+       默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
+       默认前端文件运行地址:http://127.0.0.1:8080
+`)