This commit is contained in:
loser 2023-01-10 12:08:57 +08:00
parent 2deac506cc
commit 776493eace
4 changed files with 4 additions and 36 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ docs/_book
# TODO: where does this rule come from?
test/
node_modules

View File

@ -1,23 +0,0 @@
/*
商用代码公司自用产品无需授权
若作为代码出售的产品任何涉及代码交付第三方作为后续开发必须保留此脚本
或标注原作者信息
否则将依法维权
*/
var child_process = require('child_process')
var url = 'https://www.gin-vue-admin.com'
var cmd = ''
console.log(process.platform)
switch (process.platform) {
case 'win32':
cmd = 'start'
child_process.exec(cmd + ' ' + url)
break
case 'darwin':
cmd = 'open'
child_process.exec(cmd + ' ' + url)
break
}

View File

@ -3,7 +3,7 @@
"version": "2.5.5",
"private": true,
"scripts": {
"serve": "node openDocument.js && vite --host --mode development",
"serve": "vite --host --mode development",
"build": "vite build --mode production",
"limit-build": "npm install increase-memory-limit-fixbug cross-env -g && npm run fix-memory-limit && node ./limit && npm run build",
"preview": "vite preview",
@ -49,4 +49,4 @@
"vite-plugin-banner": "^0.1.3",
"vite-plugin-importer": "^0.2.5"
}
}
}

View File

@ -8,15 +8,5 @@ import { register } from './global'
export default {
install: (app) => {
register(app)
console.log(`
欢迎使用 Gin-Vue-Admin
当前版本:v2.5.5
加群方式:微信shouzi_1994 QQ群622360840
GVA讨论社区:https://support.qq.com/products/371961
插件市场:https://plugin.gin-vue-admin.com
默认自动化文档地址:http://127.0.0.1:${import.meta.env.VITE_SERVER_PORT}/swagger/index.html
默认前端文件运行地址:http://127.0.0.1:${import.meta.env.VITE_CLI_PORT}
如果项目让您获得了收益希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/coffee/index.html
`)
}
}
}