Browse Source

发布setup语法糖的beta版

main
piexlmax 3 years ago
parent
commit
8dfbbdd9f2
  1. 2
      server/core/server.go
  2. 2
      web/package.json
  3. 2
      web/src/core/config.js
  4. 2
      web/src/core/gin-vue-admin.js
  5. 5
      web/src/core/global.js

2
server/core/server.go

@ -38,7 +38,7 @@ func RunWindowsServer() {
fmt.Printf(` fmt.Printf(`
欢迎使用 github.com/flipped-aurora/gin-vue-admin/server 欢迎使用 github.com/flipped-aurora/gin-vue-admin/server
当前版本:V2.4.6
当前版本:V2.5.0 beta
加群方式:微信号shouzi_1994 QQ群622360840 加群方式:微信号shouzi_1994 QQ群622360840
GVA讨论社区:https://support.qq.com/products/371961 GVA讨论社区:https://support.qq.com/products/371961
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html 默认自动化文档地址:http://127.0.0.1%s/swagger/index.html

2
web/package.json

@ -1,6 +1,6 @@
{ {
"name": "gin-vue-admin", "name": "gin-vue-admin",
"version": "2.4.6",
"version": "2.5.0",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "node openDocument.js && vite --host --mode development", "serve": "node openDocument.js && vite --host --mode development",

2
web/src/core/config.js

@ -18,7 +18,7 @@ export const viteLogo = (env) => {
) )
console.log( console.log(
chalk.green( chalk.green(
`> 当前版本:V2.4.6`
`> 当前版本:V2.5.0`
) )
) )
console.log( console.log(

2
web/src/core/gin-vue-admin.js

@ -10,7 +10,7 @@ export default {
register(app) register(app)
console.log(` console.log(`
欢迎使用 Gin-Vue-Admin 欢迎使用 Gin-Vue-Admin
当前版本:V2.4.6
当前版本:V2.5.0 beta
加群方式:微信shouzi_1994 QQ群622360840 加群方式:微信shouzi_1994 QQ群622360840
GVA讨论社区:https://support.qq.com/products/371961 GVA讨论社区:https://support.qq.com/products/371961
默认自动化文档地址:http://127.0.0.1:${import.meta.env.VITE_SERVER_PORT}/swagger/index.html 默认自动化文档地址:http://127.0.0.1:${import.meta.env.VITE_SERVER_PORT}/swagger/index.html

5
web/src/core/global.js

@ -5,7 +5,7 @@ import { emitter } from '@/utils/bus.js'
import * as ElIconModules from '@element-plus/icons' import * as ElIconModules from '@element-plus/icons'
// 导入转换图标名称的函数 // 导入转换图标名称的函数
const closeThisPage = () => {
export const closeThisPage = () => {
emitter.emit('closeThisPage') emitter.emit('closeThisPage')
} }
@ -14,8 +14,5 @@ export const register = (app) => {
for (const iconName in ElIconModules) { for (const iconName in ElIconModules) {
app.component(iconName, ElIconModules[iconName]) app.component(iconName, ElIconModules[iconName])
} }
app.config.globalProperties.$GIN_VUE_ADMIN = config app.config.globalProperties.$GIN_VUE_ADMIN = config
app.config.globalProperties.$CloseThisPage = closeThisPage
} }
Loading…
Cancel
Save